Skip to content

Commit

Permalink
obs-nvenc: Fix reading uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro authored and RytoEX committed Sep 11, 2024
1 parent 7385947 commit e87593b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/obs-nvenc/nvenc-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit e87593b

Please sign in to comment.