From 0add8f90ae1d5a15000147df2a86d060a2a89917 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 26 Nov 2012 00:01:28 +0100 Subject: [PATCH] libsmooth: findkey: Empty target string if key could not be found. --- src/install+setup/libsmooth/varval.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.2