0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

obs-nvenc: Fix reading uninitialized variable

This commit is contained in:
Norihiro Kamae 2024-09-11 21:55:52 +09:00 committed by Ryan Foster
parent 7385947780
commit e87593b3d4

View File

@ -310,6 +310,7 @@ static bool nvenc_check(void)
os_process_args_t *args;
struct dstr caps_str = {0};
config_t *config = NULL;
bool success = false;
args = os_process_args_create(test_exe);
@ -344,7 +345,7 @@ static bool nvenc_check(void)
goto fail;
}
bool success = config_get_bool(config, "general", "nvenc_supported");
success = config_get_bool(config, "general", "nvenc_supported");
if (!success) {
const char *error =
config_get_string(config, "general", "reason");