summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-03-28 15:46:12 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-03-28 15:47:53 +0100
commit5ce7f0e233a3db8b34af35655e15127e79dbda1f (patch)
treec55bf9ad7a817f6741d100324c176a9c5c2ec8a8
parentaa1964d5ab1ebe10cc6ffc8f22622551e75561f4 (diff)
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.c4
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)
232 int key_len = strlen(key); 232 int key_len = strlen(key);
233 endtag = curlocater + key_len; 233 endtag = curlocater + key_len;
234 if ((!endtag) || (*endtag != '=')) 234 if ((!endtag) || (*endtag != '='))
235 {
236 foundflag = 0;
237 return -1; 235 return -1;
238 } 236
239 firstindex = abs(oldstring - curlocater); 237 firstindex = abs(oldstring - curlocater);
240 firstindex += key_len + 1; // strlen("key") + strlen("=") 238 firstindex += key_len + 1; // strlen("key") + strlen("=")
241 *value = (char *)oldstring + firstindex; 239 *value = (char *)oldstring + firstindex;