diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2014-03-28 15:46:12 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2014-03-28 15:47:53 +0100 |
commit | 5ce7f0e233a3db8b34af35655e15127e79dbda1f (patch) | |
tree | c55bf9ad7a817f6741d100324c176a9c5c2ec8a8 | |
parent | aa1964d5ab1ebe10cc6ffc8f22622551e75561f4 (diff) | |
download | elementary-5ce7f0e233a3db8b34af35655e15127e79dbda1f.tar.gz |
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
-rw-r--r-- | src/lib/elm_label.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/elm_label.c b/src/lib/elm_label.c index 3ad10ed86..071ccaa96 100644 --- a/src/lib/elm_label.c +++ b/src/lib/elm_label.c @@ -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; |