diff options
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/nls/msgcat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index df8977d0ca80..8f53e30a855a 100644 --- a/lib/libc/nls/msgcat.c +++ b/lib/libc/nls/msgcat.c @@ -1,4 +1,4 @@ -/* $Id: msgcat.c,v 1.14 1998/04/30 11:06:12 ache Exp $ */ +/* $Id: msgcat.c,v 1.15 1998/04/30 11:39:08 ache Exp $ */ /*********************************************************** Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts. @@ -257,6 +257,8 @@ __const char *dflt; MCCatT *cat = (MCCatT *) catd; __const char *cptr; + if (catd == NULL || catd == NLERR) + return((char *)dflt); msg = MCGetMsg(MCGetSet(cat, setId), msgId); if (msg) cptr = msg->msg.str; else cptr = dflt; |
