]> granicus.if.org Git - handbrake/commitdiff
hb_json: fix subtitle import crash
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 9 Sep 2019 15:45:28 +0000 (08:45 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 9 Sep 2019 15:45:28 +0000 (08:45 -0700)
make sure pointers in hb_subtitle_config_t are initialized to NULL

libhb/hb_json.c

index 65b553c92ceeb852571e0eed6b8c765112ee3163..ace8e43103147795cb6e98cd312710c5f144cf6a 100644 (file)
@@ -1587,7 +1587,7 @@ hb_job_t* hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict )
         for (ii = 0; ii < count; ii++)
         {
             subtitle_dict = hb_value_array_get(subtitle_list, ii);
-            hb_subtitle_config_t sub_config;
+            hb_subtitle_config_t sub_config = {0};
             int track = -1;
             int burn = 0;
             const char *importfile = NULL;