mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-11 08:13:46 -05:00
Add some more miscellaneous asserts.
These clarify matters for static checkers (not to mention humans), and seem inexpensive enough not to worry about adding.
This commit is contained in:
@ -1850,8 +1850,9 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs,
|
||||
GtkWidget *ret;
|
||||
int i;
|
||||
|
||||
if (!s->boxname && s->boxtitle) {
|
||||
if (!s->boxname) {
|
||||
/* This controlset is a panel title. */
|
||||
assert(s->boxtitle);
|
||||
return gtk_label_new(s->boxtitle);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user