Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libintl Sync w/ Citrus.
details: https://anonhg.NetBSD.org/src/rev/38a6b2c9ffb7
branches: trunk
changeset: 503834:38a6b2c9ffb7
user: minoura <minoura%NetBSD.org@localhost>
date: Thu Feb 15 10:48:31 2001 +0000
description:
Sync w/ Citrus.
Return NULL when msgid == NULL, per GNU implementation.
diffstat:
lib/libintl/gettext.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 613033b7c8e6 -r 38a6b2c9ffb7 lib/libintl/gettext.c
--- a/lib/libintl/gettext.c Thu Feb 15 09:51:28 2001 +0000
+++ b/lib/libintl/gettext.c Thu Feb 15 10:48:31 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gettext.c,v 1.7 2000/12/15 06:37:21 itojun Exp $ */
+/* $NetBSD: gettext.c,v 1.8 2001/02/15 10:48:31 minoura Exp $ */
/*-
* Copyright (c) 2000 Citrus Project,
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: gettext.c,v 1.7 2000/12/15 06:37:21 itojun Exp $");
+__RCSID("$NetBSD: gettext.c,v 1.8 2001/02/15 10:48:31 minoura Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -527,6 +527,8 @@
struct domainbinding *db;
msgid = (n == 1) ? msgid1 : msgid2;
+ if (msgid == NULL)
+ return NULL;
if (!domainname)
domainname = __binding.domainname;
Home |
Main Index |
Thread Index |
Old Index