From: root Date: Mon, 26 Nov 2007 12:17:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f8e745ff9d3d1c36cdbaf2d048d447906b5d5111;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/rxvt.h b/src/rxvt.h index c7ef1697..fdc05dda 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -1273,11 +1273,18 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen { bool option (uint8_t opt) const NOTHROW { + if (!opt) return 0; + + --opt; return options[opt >> 3] & (1 << (opt & 7)); } void set_option (uint8_t opt, bool set = true) NOTHROW { + if (!opt) + return; + + --opt; if (set) options[opt >> 3] |= (1 << (opt & 7)); else