From: H.G. Muller Date: Wed, 12 Oct 2011 15:38:33 +0000 (+0200) Subject: Fix invalid combobox entry WB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fe2fa12d52e58ecddfa4c2d03a2331aad3daeb71;p=xboard.git Fix invalid combobox entry WB A combobox label that was not in the list (because the user typed it, rather than selecting one) would cause a crash. --- diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 22b182c..509b6d4 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -389,7 +389,7 @@ GetOptionValues(HWND hDlg, ChessProgramState *cps, Option *optionList) for(k=0; k 0) { if(*(char**)optionList[j].target) free(*(char**)optionList[j].target); *(char**)optionList[j].target = strdup(optionList[j].choice[new]); break;