Signed-off-by: Sergey Ponomarev <[email protected]>
---
jshn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jshn.c b/jshn.c
index 6490fbc..979182f 100644
--- a/jshn.c
+++ b/jshn.c
@@ -170,7 +170,7 @@ static int jshn_parse(const char *str)
static char *getenv_avl(const char *key)
{
struct env_var *var = avl_find_element(&env_vars, key, var, avl);
- return var ? var->val : NULL;
+ return var->val;
}
static char *get_keys(const char *prefix)
--
2.27.0
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel