summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/nls/msgcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index 8f53e30..b6ac8aa 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -1,4 +1,4 @@
-/* $Id: msgcat.c,v 1.15 1998/04/30 11:39:08 ache Exp $ */
+/* $Id: msgcat.c,v 1.16 1998/04/30 12:25:05 ache Exp $ */
/***********************************************************
Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
@@ -273,7 +273,7 @@ nl_catd catd;
MCSetT *set;
int i;
- if (!cat) return -1;
+ if (catd == NULL || catd == NLERR) return -1;
if (cat->loadType != MCLoadAll) close(cat->fd);
for (i = 0; i < cat->numSets; ++i) {
OpenPOWER on IntegriCloud