X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fparse_entry.c;h=fa1c38355c2c067d378f2fcbcc6c31c8ccc6fdb6;hp=73c31cb1d59e0b7972e578d96e10e7c3aa48830d;hb=614f0d6711aad3f1a99c149cc533e74f8af3c444;hpb=10539f5afe94d8ff488516ca7f9861af7c800bfb diff --git a/ncurses/tinfo/parse_entry.c b/ncurses/tinfo/parse_entry.c index 73c31cb1..fa1c3835 100644 --- a/ncurses/tinfo/parse_entry.c +++ b/ncurses/tinfo/parse_entry.c @@ -47,7 +47,7 @@ #include #include -MODULE_ID("$Id: parse_entry.c,v 1.72 2010/01/23 17:57:43 tom Exp $") +MODULE_ID("$Id: parse_entry.c,v 1.73 2010/04/17 22:41:48 tom Exp $") #ifdef LINT static short const parametrized[] = @@ -511,9 +511,9 @@ NCURSES_EXPORT(int) _nc_capcmp(const char *s, const char *t) /* compare two string capabilities, stripping out padding */ { - if (!s && !t) + if (!VALID_STRING(s) && !VALID_STRING(t)) return (0); - else if (!s || !t) + else if (!VALID_STRING(s) || !VALID_STRING(t)) return (1); for (;;) {