[rtmpdump] r129 - trunk/swfvfy.c

hyc subversion at mplayerhq.hu
Tue Dec 29 09:36:47 CET 2009


Author: hyc
Date: Tue Dec 29 09:36:46 2009
New Revision: 129

Log:
Check for fopen failing

Modified:
   trunk/swfvfy.c

Modified: trunk/swfvfy.c
==============================================================================
--- trunk/swfvfy.c	Tue Dec 29 09:13:36 2009	(r128)
+++ trunk/swfvfy.c	Tue Dec 29 09:36:46 2009	(r129)
@@ -211,6 +211,8 @@ SWFVerify(const char *url, unsigned int 
           char *q;
           if (!f)
             f = fopen(path, "w");
+          if (!f)
+            return -1;
           fseek(f, 0, SEEK_END);
           q = strchr(url, '?');
           if (q)


More information about the rtmpdump mailing list