Fix: bt_common_string_until(): reset returned variable on error
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 16 Aug 2019 00:21:01 +0000 (20:21 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 16 Aug 2019 16:35:04 +0000 (12:35 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I5675899ea57e52eff8492b7444e2216c97f38ad7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1945
Tested-by: jenkins <jenkins@lttng.org>
src/common/common.c

index 404357a38beed46ebf55e086c17542c14cdf3e3a..b2b76cde1c0ec17107c45bef72151a4d9d91c51a 100644 (file)
@@ -512,6 +512,7 @@ set_end_pos:
 error:
        if (output) {
                g_string_free(output, TRUE);
+               output = NULL;
        }
 
 end:
This page took 0.027338 seconds and 4 git commands to generate.