summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-04-30 13:15:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-04-30 13:15:31 +0000
commite3b0c2a695927fc7f08d6b4615a852e19ed0a6f4 (patch)
treebc2691b3d613180d64ba0e79fb6f88cdbad19b42 /lib/libc
parent3ccb32a97533d8fa705eb69c5783ea8c3448e587 (diff)
Notes
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 8f53e30a855a..b6ac8aa3b20e 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) {