Browse Source

Merge pull request #6952 from smlng/sys/shell/refix_6948

sys: shell: gnrc_6ctx: further fix gnrc_6ctx_add error handling
master
Martine Lenders 6 years ago committed by GitHub
parent
commit
cd808a591c
  1. 2
      sys/shell/commands/sc_gnrc_6ctx.c

2
sys/shell/commands/sc_gnrc_6ctx.c

@ -91,7 +91,7 @@ int _gnrc_6ctx_add(char *cmd_str, char *ctx_str, char *prefix_str, char *ltime_s
return 1;
}
prefix_len_str = strtok_r(NULL, "/", &save_ptr);
if (prefix_len_str == 0) {
if (prefix_len_str == NULL) {
_usage(cmd_str);
return 1;
}

Loading…
Cancel
Save