changeset 2915:80954dfeabed

fopen(NULL,r) segfault on qnx
author iive
date Thu, 15 Nov 2001 16:46:52 +0000
parents 1ccec8cd9310
children 5ecae3e4db37
files subreader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Thu Nov 15 16:45:26 2001 +0000
+++ b/subreader.c	Thu Nov 15 16:46:52 2001 +0000
@@ -586,7 +586,7 @@
 	    sub_read_line_aqt
 
     };
-
+    if(filename==NULL) return NULL; //qnx segfault
     fd=fopen (filename, "r"); if (!fd) return NULL;
 
     sub_format=sub_autodetect (fd);