Simple options: guard against boolean being null

This commit is contained in:
Pasi Kallinen
2022-08-04 20:08:19 +03:00
parent b3822cd94d
commit c8bd39c748
+2
View File
@@ -7789,6 +7789,8 @@ rerun:
switch (allopt[i].opttyp) { switch (allopt[i].opttyp) {
case BoolOpt: case BoolOpt:
bool_p = allopt[i].addr; bool_p = allopt[i].addr;
if (!bool_p)
continue;
Sprintf(buf, fmtstr_doset, "", Sprintf(buf, fmtstr_doset, "",
name, *bool_p ? "X" : " "); name, *bool_p ? "X" : " ");
break; break;