summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-04-30 12:25:05 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-04-30 12:25:05 +0000
commite97ef24c1870d4b6b53bc187e0f715d0d5832a90 (patch)
treeccdecd048dda40e48fcc1071f94e8371c4c8f9d7 /lib/libc
parent9ad256ad652520cee313d0860269c078c6f0bd5b (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/nls/msgcat.c4
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;