Fixed freeing uninitialized pointers on failure cleanup in tests.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 07 Oct 2015 21:16:59 +0200
changeset 9892f8e6273be2fa
parent 9891 c8dd60b666ed
child 9893 d3ad01d50bf0
Fixed freeing uninitialized pointers on failure cleanup in tests.
test/testautomation_video.c
     1.1 --- a/test/testautomation_video.c	Wed Oct 07 21:16:40 2015 +0200
     1.2 +++ b/test/testautomation_video.c	Wed Oct 07 21:16:59 2015 +0200
     1.3 @@ -1522,10 +1522,10 @@
     1.4    const char *referenceName2 = "TestName2";
     1.5    const char *name2 = "TestName2";
     1.6    int datasize;
     1.7 -  char *referenceUserdata;
     1.8 -  char *userdata;
     1.9 -  char *referenceUserdata2;
    1.10 -  char *userdata2;
    1.11 +  char *referenceUserdata = NULL;
    1.12 +  char *userdata = NULL;
    1.13 +  char *referenceUserdata2 = NULL;
    1.14 +  char *userdata2 = NULL;
    1.15    char *result;
    1.16    int iteration;
    1.17