From: Michael Tremer Date: Sun, 25 Nov 2012 23:01:28 +0000 (+0100) Subject: libsmooth: findkey: Empty target string if key could not be found. X-Git-Tag: v2.13-beta1~26 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=0add8f90ae1d5a15000147df2a86d060a2a89917 libsmooth: findkey: Empty target string if key could not be found. --- diff --git a/src/install+setup/libsmooth/varval.c b/src/install+setup/libsmooth/varval.c index 9a64365af7..d12789097d 100644 --- a/src/install+setup/libsmooth/varval.c +++ b/src/install+setup/libsmooth/varval.c @@ -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; }