mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-13 10:18:30 -04:00
Fix NULL pointer dereference with text lookups
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user