X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Flib_ti.c;h=6c94772a481923b63f7f7ee99ce824aa98872e09;hp=76001d2c11acb39b539aa31668ebee47a4a5d4a6;hb=85201fb67296429954e5c0a7784ec2c21a900c1d;hpb=ccb812c9ce7d5859d06b01ce88b331b2a70ad520 diff --git a/ncurses/tinfo/lib_ti.c b/ncurses/tinfo/lib_ti.c index 76001d2c..6c94772a 100644 --- a/ncurses/tinfo/lib_ti.c +++ b/ncurses/tinfo/lib_ti.c @@ -37,7 +37,7 @@ #include #include -MODULE_ID("$Id: lib_ti.c,v 1.26 2009/07/11 18:14:21 tom Exp $") +MODULE_ID("$Id: lib_ti.c,v 1.27 2009/07/28 22:03:36 tom Exp $") #if 0 static bool @@ -123,10 +123,12 @@ NCURSES_SP_NAME(tigetnum) (NCURSES_SP_DCLx NCURSES_CONST char *str) } } #endif - if (j >= 0 && VALID_NUMERIC(tp->Numbers[j])) - result = tp->Numbers[j]; - else - result = ABSENT_NUMERIC; + if (j >= 0) { + if (VALID_NUMERIC(tp->Numbers[j])) + result = tp->Numbers[j]; + else + result = ABSENT_NUMERIC; + } } returnCode(result);