avoid a warning
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 17 May 2016 08:32:46 +0000 (10:32 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 17 May 2016 08:32:46 +0000 (10:32 +0200)
Change-Id: I7a571d13670f689d8a872b2583a5ac06374d0b1a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-wsj1.c

index cf31a57..df4a234 100644 (file)
@@ -242,7 +242,7 @@ static void wsj1_on_text(struct afb_wsj1 *wsj1, char *text, size_t size)
        size_t items[10][2];
        int n;
        struct afb_wsj1_msg *msg;
-       struct wsj1_call *call;
+       struct wsj1_call *call = NULL;
 
        /* allocate */
        msg = calloc(1, sizeof *msg);