]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_cmdline_num.c
app/test: remove writes in NULL buffer from cmdline tests
[dpdk.git] / app / test / test_cmdline_num.c
index e865428f8489b015519647121c269796349b613e..799d68c94ff06e8877b9e2f2f65dda73f28bb106 100644 (file)
@@ -395,13 +395,6 @@ test_parse_num_invalid_param(void)
                return -1;
        }
 
-       /* try null buf */
-       ret = cmdline_get_help_num((cmdline_parse_token_hdr_t*)&token, NULL, sizeof(buf));
-       if (ret != -1) {
-               printf("Error: help function accepted null buffer!\n");
-               return -1;
-       }
-
        /* coverage! */
        ret = cmdline_get_help_num((cmdline_parse_token_hdr_t*)&token, buf, sizeof(buf));
        if (ret < 0) {