Commit d80f45666b2fb738ea23daa456d42ad900240ab3

Philipp Wiesemann 2015-10-07T21:16:59

Fixed freeing uninitialized pointers on failure cleanup in tests.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/test/testautomation_video.c b/test/testautomation_video.c
index cfc4a23..7b86cfb 100644
--- a/test/testautomation_video.c
+++ b/test/testautomation_video.c
@@ -1522,10 +1522,10 @@ video_getSetWindowData(void *arg)
   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;