changeset 780:18b54ee82c24 trunk

[svn] - do not operate on a non-existant fd
author nenolod
date Thu, 02 Mar 2006 08:00:29 -0800
parents fc16e70c7a1b
children 12c47704b4b5
files Plugins/Input/mpg123/id3.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/mpg123/id3.c	Wed Mar 01 12:13:38 2006 -0800
+++ b/Plugins/Input/mpg123/id3.c	Thu Mar 02 08:00:29 2006 -0800
@@ -404,6 +404,9 @@
 {
     struct id3_tag *id3;
 
+    if (fp == NULL)
+	return NULL;
+
     /*
      * Allocate ID3 structure.
      */