return 1;
}
+void print_interactive_help(void)
+{
+ icom_help(NULL);
+}
+
static int icom_reset(__a_unused char *line)
{
select_cmdline_parser_init(&select_conf);
char *p = cmd + strcspn(cmd, delim);
int ret = -E_SYNTAX;
- *p = '\0';
- p++;
+ if (*p == '\0')
+ p = NULL;
+ else {
+ *p = '\0';
+ p++;
+ }
for (i = 0; icmds[i].name; i++) {
ERROR_LOG("name: %s, cmd: %s.\n", icmds[i].name, cmd);
if (strcmp(icmds[i].name, cmd))