c11 safe string handling support
[vpp.git] / src / plugins / ioam / lib-trace / trace_util.c
index 5c7f1ee..af92513 100644 (file)
@@ -18,6 +18,7 @@
 #include <string.h>
 #include <vppinfra/mem.h>
 #include "trace_util.h"
+#include "trace_config.h"
 
 trace_main_t trace_main;
 
@@ -25,7 +26,7 @@ static int
 trace_profile_cleanup (trace_profile * profile)
 {
 
-  memset (profile, 0, sizeof (trace_profile));
+  clib_memset (profile, 0, sizeof (trace_profile));
   profile->trace_tsp = TSP_MICROSECONDS;       /* Micro seconds */
   ip6_trace_profile_cleanup ();        /* lib-trace_TODO: Remove this once IOAM-IPv6 transport is a plugin */
   return 0;