afb-hook-flags: Fix a compilation warning 45/16345/1
authorJose Bollo <jose.bollo@iot.bzh>
Mon, 27 Aug 2018 11:19:19 +0000 (13:19 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Mon, 27 Aug 2018 11:19:59 +0000 (13:19 +0200)
Change-Id: Ic9d1cc44ef1bbf6db4afe8eb7016b05f4cddb9a4
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-hook-flags.c

index a2cb7ea..02ea3c8 100644 (file)
@@ -216,7 +216,7 @@ static char *to_text(int value, struct flags flags)
 {
        int borrow = 0, mask = 0, i, v, imask;
        size_t s = 0;
-       char *result;
+       char *result = NULL;
 
        if (!value)
                return strdup("none");