From e87593b3d426dae1c21aa3f5a8420cffaf2181e0 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Wed, 11 Sep 2024 21:55:52 +0900 Subject: [PATCH] obs-nvenc: Fix reading uninitialized variable --- plugins/obs-nvenc/nvenc-helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/obs-nvenc/nvenc-helpers.c b/plugins/obs-nvenc/nvenc-helpers.c index 9bd89b03c6abb5..024fc7fe9a4365 100644 --- a/plugins/obs-nvenc/nvenc-helpers.c +++ b/plugins/obs-nvenc/nvenc-helpers.c @@ -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");