From 4bf73d8148e3df19a2e9cc5f0bcbc13d0515e15b Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Wed, 21 Apr 2021 12:26:06 +0300 Subject: [PATCH] Initialize iCol with zero. Uninitialized is random at debug and negative numbers fail to insert column. --- src/win/win_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index 57fce16ba..067f7c9f9 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -5060,7 +5060,7 @@ static BOOL win_settings_categories_init_columns(HWND hdlg) { LVCOLUMN lvc; - int iCol; + int iCol = 0; HWND hwndList = GetDlgItem(hdlg, IDC_SETTINGSCATLIST); lvc.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;