aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-08-27 13:19:19 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-08-27 13:19:59 +0200
commit870652219335d54099ba67b721164b456b7975e9 (patch)
tree4519fea775b5841cf28b87d3435f05732eebb9fc
parent8aac4b82fa18fe6f0feacac86fdde3d78b19cd18 (diff)
afb-hook-flags: Fix a compilation warning
Change-Id: Ic9d1cc44ef1bbf6db4afe8eb7016b05f4cddb9a4 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-hook-flags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hook-flags.c b/src/afb-hook-flags.c
index a2cb7eac..02ea3c8d 100644
--- a/src/afb-hook-flags.c
+++ b/src/afb-hook-flags.c
@@ -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");