提交 57dcf497 编写于 作者: J jp9000

Fix NULL pointer dereference with text lookups

上级 c9e225d7
......@@ -409,5 +409,7 @@ void text_lookup_destroy(lookup_t lookup)
bool text_lookup_getstr(lookup_t lookup, const char *lookup_val,
const char **out)
{
return lookup_getstring(lookup_val, out, lookup->top);
if (lookup)
return lookup_getstring(lookup_val, out, lookup->top);
return false;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册