mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #6948 from kaspar030/fix_sc_gnrc_6ctx
sys: shell: gnrc_6ctx: fix gnrc_6ctx_add error handling (coccinelle)
This commit is contained in:
commit
e4225cce6a
@ -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 (addr_str == NULL) {
|
||||
if (prefix_len_str == 0) {
|
||||
_usage(cmd_str);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user