From c3d1f59e88405fab2e06b684dd885be3af7d6ac6 Mon Sep 17 00:00:00 2001 From: darkstar Date: Mon, 8 Oct 2018 00:34:50 +0200 Subject: [PATCH] MSVC: Fix potentially uninitialized variable error MSVC doesn't like these and regards them as errors --- src/win/win_settings_disk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_settings_disk.h b/src/win/win_settings_disk.h index 972e057..68305dd 100644 --- a/src/win/win_settings_disk.h +++ b/src/win/win_settings_disk.h @@ -789,7 +789,7 @@ disk_add_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) { wchar_t temp_path[512]; char buf[512], *big_buf; - HWND h; + HWND h = INVALID_HANDLE_VALUE; uint64_t i = 0; uint64_t temp; FILE *f;