Skip to content
Snippets Groups Projects
Commit cd808a59 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

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

sys: shell: gnrc_6ctx: further fix gnrc_6ctx_add error handling
parents 993ed203 6d409513
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ int _gnrc_6ctx_add(char *cmd_str, char *ctx_str, char *prefix_str, char *ltime_s ...@@ -91,7 +91,7 @@ int _gnrc_6ctx_add(char *cmd_str, char *ctx_str, char *prefix_str, char *ltime_s
return 1; return 1;
} }
prefix_len_str = strtok_r(NULL, "/", &save_ptr); prefix_len_str = strtok_r(NULL, "/", &save_ptr);
if (prefix_len_str == 0) { if (prefix_len_str == NULL) {
_usage(cmd_str); _usage(cmd_str);
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment