]> granicus.if.org Git - handbrake/commitdiff
libhb: fix uninitialized variable
authorjstebbins <jstebbins.hb@gmail.com>
Fri, 14 Mar 2014 21:49:44 +0000 (21:49 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Fri, 14 Mar 2014 21:49:44 +0000 (21:49 +0000)
since a malloc depends on the value of this variable, it's rather important
that it be initialized ;)

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6113 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/batch.c

index 45fcee1a815b537d04bc37082b79ae8691ca2079..ca61287ef02eb7dd3230b501b687e6b0e53d2b8e 100644 (file)
@@ -47,6 +47,7 @@ hb_batch_t * hb_batch_init( char * path )
         return NULL;
 
     // Count the total number of entries
+    count = 0;
     while ( (entry = hb_readdir( dir ) ) )
     {
         count++;