mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
libobs: Ensure module exists before getting locale string
This commit is contained in:
+2
-1
@@ -63,7 +63,8 @@ static int load_module_exports(struct obs_module *mod, const char *path)
|
||||
|
||||
bool obs_module_get_locale_string(const obs_module_t *mod, const char *lookup_string, const char **translated_string)
|
||||
{
|
||||
if (mod->get_string) {
|
||||
assert(mod);
|
||||
if (mod && mod->get_string) {
|
||||
return mod->get_string(lookup_string, translated_string);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user