]> granicus.if.org Git - rtmpdump/commitdiff
Check for fopen failing
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 29 Dec 2009 08:36:46 +0000 (08:36 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 29 Dec 2009 08:36:46 +0000 (08:36 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@129 400ebc74-4327-4243-bc38-086b20814532

swfvfy.c

index c75fa53885ec4d05b8dbd9e25410376e9ffd553e..e56f14a6413ed1c1c79963b724f83fd16404de41 100644 (file)
--- a/swfvfy.c
+++ b/swfvfy.c
@@ -211,6 +211,8 @@ SWFVerify(const char *url, unsigned int *size, unsigned char *hash)
           char *q;
           if (!f)
             f = fopen(path, "w");
+          if (!f)
+            return -1;
           fseek(f, 0, SEEK_END);
           q = strchr(url, '?');
           if (q)