Skip to content

Commit

Permalink
Merge pull request #6952 from smlng/sys/shell/refix_6948
Browse files Browse the repository at this point in the history
sys: shell: gnrc_6ctx: further fix gnrc_6ctx_add error handling
  • Loading branch information
miri64 committed Apr 24, 2017
2 parents 993ed20 + 6d40951 commit cd808a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/shell/commands/sc_gnrc_6ctx.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit cd808a5

Please sign in to comment.