From 4cc9c4466ccdfcf7a21e9dc83c485eff1c345baa Mon Sep 17 00:00:00 2001 From: Penwywern Date: Thu, 11 Jun 2026 00:12:02 +0200 Subject: [PATCH] libobs: Ensure module exists before getting locale string --- libobs/obs-module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libobs/obs-module.c b/libobs/obs-module.c index d623607be..6bff23985 100644 --- a/libobs/obs-module.c +++ b/libobs/obs-module.c @@ -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); }