mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
libsmooth: findkey: Empty target string if key could not be found.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user