]> granicus.if.org Git - handbrake/commitdiff
libhb: fix dereference of null pointer
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 20 Oct 2015 19:43:20 +0000 (12:43 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 20 Oct 2015 19:43:20 +0000 (12:43 -0700)
libhb/param.c

index 851c5f3005d3f1ecb9485300b1aedd5164c1aa39..fc65d8971f0ed46f5329bae37919ec4a670f03ef 100644 (file)
@@ -364,7 +364,8 @@ filter_param_get_tunes_internal(int filter_id, int *count)
 {
     int ii;
 
-    *count = 0;
+    if (count != NULL)
+        *count = 0;
     for (ii = 0; param_map[ii].filter_id != HB_FILTER_INVALID; ii++)
     {
         if (param_map[ii].filter_id == filter_id)