Skip to content

Commit

Permalink
core: main - check the debug cli param value
Browse files Browse the repository at this point in the history
(cherry picked from commit dfc407c)
  • Loading branch information
miconda committed May 5, 2022
1 parent 1d39dc5 commit a830c48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.c
Expand Up @@ -2084,6 +2084,10 @@ int main(int argc, char** argv)
ksr_slog_init(optarg);
break;
case KARGOPTVAL+8:
if (optarg == NULL) {
fprintf(stderr, "bad debug level value\n");
goto error;
}
debug_flag = 1;
default_core_cfg.debug=(int)strtol(optarg, &tmp, 10);
if ((tmp==0) || (*tmp)){
Expand Down

0 comments on commit a830c48

Please sign in to comment.