label: Remove unused setting of foundflag before return.

We are never going to check on foundflag here because we return
right after setting it. Clear the code up a bit by not setting it
at all.

Found by Clang scan-build
This commit is contained in:
Stefan Schmidt 2014-03-28 15:46:12 +01:00
parent 52484daad8
commit cf607ab86b
1 changed files with 1 additions and 3 deletions

View File

@ -232,10 +232,8 @@ _get_value_in_key_string(const char *oldstring, const char *key, char **value)
int key_len = strlen(key);
endtag = curlocater + key_len;
if ((!endtag) || (*endtag != '='))
{
foundflag = 0;
return -1;
}
firstindex = abs(oldstring - curlocater);
firstindex += key_len + 1; // strlen("key") + strlen("=")
*value = (char *)oldstring + firstindex;