Fix typo in API warning message.
[vpp.git] / src / vlibapi / api_shared.c
index 6a04fac..1a2740e 100644 (file)
@@ -513,7 +513,7 @@ vl_msg_api_handler_with_vm_node (api_main_t * am,
     }
   else
     {
-      clib_warning ("no hander for msg id %d", id);
+      clib_warning ("no handler for msg id %d", id);
     }
 
   /*
@@ -691,6 +691,8 @@ vl_msg_api_set_handlers (int id, char *name, void *handler, void *cleanup,
   vl_msg_api_msg_config_t cfg;
   vl_msg_api_msg_config_t *c = &cfg;
 
+  memset (c, 0, sizeof (*c));
+
   c->id = id;
   c->name = name;
   c->handler = handler;