Skip to content
Snippets Groups Projects
Commit 8dab5605 authored by Adam Wujek's avatar Adam Wujek
Browse files

userspace/libwr/config-lpcalib.c: fix cfg_get_str when value is empty


Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent d9abca43
Branches
No related merge requests found
......@@ -190,7 +190,7 @@ int cfg_get_str(struct config_file *cfg, const char *key, char *value)
{
struct key_value *kv = cfg_find_key(cfg, key, 1);
if (!kv)
if (!kv || !kv->value)
return 0;
strcpy(value, kv->value);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment