libsmooth: findkey: Empty target string if key could not be found.

This commit is contained in:
Michael Tremer
2012-11-26 00:01:28 +01:00
parent 83601a06bc
commit 0add8f90ae

View File

@@ -151,6 +151,9 @@ int findkey(struct keyvalue *head, char *key, char *value)
cur = cur->next;
}
// Empty value if we could not find key.
value[0] = '\0';
return 0;
}