Fixed freeing uninitialized pointers on failure cleanup in tests.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 07 Oct 2015 21:16:59 +0200
changeset 9892 f8e6273be2fa
parent 9891 c8dd60b666ed
child 9893 d3ad01d50bf0
Fixed freeing uninitialized pointers on failure cleanup in tests.
test/testautomation_video.c
--- a/test/testautomation_video.c	Wed Oct 07 21:16:40 2015 +0200
+++ b/test/testautomation_video.c	Wed Oct 07 21:16:59 2015 +0200
@@ -1522,10 +1522,10 @@
   const char *referenceName2 = "TestName2";
   const char *name2 = "TestName2";
   int datasize;
-  char *referenceUserdata;
-  char *userdata;
-  char *referenceUserdata2;
-  char *userdata2;
+  char *referenceUserdata = NULL;
+  char *userdata = NULL;
+  char *referenceUserdata2 = NULL;
+  char *userdata2 = NULL;
   char *result;
   int iteration;