Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libintl appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/ec4f05e31f2d
branches:  trunk
changeset: 581389:ec4f05e31f2d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 11:08:57 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 lib/libintl/gettext.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r abc7584ed26f -r ec4f05e31f2d lib/libintl/gettext.c
--- a/lib/libintl/gettext.c     Wed Jun 01 11:06:01 2005 +0000
+++ b/lib/libintl/gettext.c     Wed Jun 01 11:08:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gettext.c,v 1.23 2005/05/15 09:58:06 yamt Exp $        */
+/*     $NetBSD: gettext.c,v 1.24 2005/06/01 11:08:57 lukem Exp $       */
 
 /*-
  * Copyright (c) 2000, 2001 Citrus Project,
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gettext.c,v 1.23 2005/05/15 09:58:06 yamt Exp $");
+__RCSID("$NetBSD: gettext.c,v 1.24 2005/06/01 11:08:57 lukem Exp $");
 
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -899,7 +899,7 @@
        static char *ocname = NULL;
        static char *odomainname = NULL;
        struct domainbinding *db;
-       unsigned long plural_index;
+       unsigned long plural_index = 0;
        size_t len;
 
        if (!domainname)



Home | Main Index | Thread Index | Old Index