1
0
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:
Kaspar Schleiser 2017-04-21 10:28:32 +02:00 committed by GitHub
commit e4225cce6a

View File

@ -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;
}