+2015-08-03 Benno Schulenberg <bensberg@justemail.net>
+ * src/rcfile.c (parse_binding): Check value of shortcut->toggle
+ only if it actually is a toggle. Found with valgrind.
+
2015-08-02 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (initialize_buffer): Initialize also openfile->syntax.
This addresses Debian bug #787914 reported by Paul Wise.
/* If this is a toggle, copy its sequence number. */
if (newsc->scfunc == do_toggle_void) {
for (s = sclist; s != NULL; s = s->next)
- if (newsc->toggle == s->toggle)
+ if (s->scfunc == do_toggle_void && s->toggle == newsc->toggle)
newsc->ordinal = s->ordinal;
} else
newsc->ordinal = 0;