acl-plugin: fix coverity issue 166801 58/7258/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 21 Jun 2017 17:26:59 +0000 (19:26 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 21 Jun 2017 17:26:59 +0000 (19:26 +0200)
A typo resulted in a value being overwritten and flagged as unused, fix the typo.

Change-Id: I512ba94321afb80d12c71ebbb0eec42d9fa6f299
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/manual_fns.h

index cf9c3ab..a2620fb 100644 (file)
@@ -257,7 +257,7 @@ vl_api_macip_acl_add_t_print (vl_api_macip_acl_add_t * a, void *handle)
       count = a->count;
     }
 
-  s = format (0, "SCRIPT: macip_acl_add ");
+  s = format (s, "SCRIPT: macip_acl_add ");
   if (a->tag[0])
     s = format (s, "tag %s ", a->tag);