Note fuzz refresh in d/changelog
[deb_dpdk.git] / lib / librte_cmdline / cmdline_parse.c
index 24a6ed6..28a7933 100644 (file)
@@ -118,6 +118,14 @@ cmdline_isendoftoken(char c)
        return 0;
 }
 
+int
+cmdline_isendofcommand(char c)
+{
+       if (!c || iscomment(c) || isendofline(c))
+               return 1;
+       return 0;
+}
+
 static unsigned int
 nb_common_chars(const char * s1, const char * s2)
 {
@@ -141,7 +149,7 @@ match_inst(cmdline_parse_inst_t *inst, const char *buf,
           unsigned int nb_match_token, void *resbuf, unsigned resbuf_size)
 {
        unsigned int token_num=0;
-       cmdline_parse_token_hdr_t * token_p;
+       cmdline_parse_token_hdr_t *token_p = NULL;
        unsigned int i=0;
        int n = 0;
        struct cmdline_token_hdr token_hdr;