Commit 25f8195d authored by Pekka Pessi's avatar Pekka Pessi

url.c: remove redundant check from url_strip_param_string()

MeeGo Coverity issue CID#7498
parent d29bff8f
......@@ -1411,11 +1411,10 @@ char *url_strip_param_string(char *params, char const *name)
rest = strlen(params + i + remove);
if (!rest) {
if (i == 0)
return NULL; /* removed everything */
params[i - 1] = '\0';
break;
}
memmove(params + i, params + i + remove, rest + 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment