Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2019 16:00:03 +0000 (UTC)
From:      Yuri Pankov <yuripv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352216 - head/usr.bin/locale
Message-ID:  <201909111600.x8BG03or055111@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuripv
Date: Wed Sep 11 16:00:03 2019
New Revision: 352216
URL: https://svnweb.freebsd.org/changeset/base/352216

Log:
  locale: initialize variables to make gcc happy
  
  Reported by:	jenkins

Modified:
  head/usr.bin/locale/locale.c

Modified: head/usr.bin/locale/locale.c
==============================================================================
--- head/usr.bin/locale/locale.c	Wed Sep 11 15:41:36 2019	(r352215)
+++ head/usr.bin/locale/locale.c	Wed Sep 11 16:00:03 2019	(r352216)
@@ -745,7 +745,7 @@ kwval_ltime(int id)
 {
 	char *rval;
 	struct sbuf *kwsbuf;
-	nl_item i, s_item, e_item;
+	nl_item i, s_item = 0, e_item = 0;
 
 	switch (id) {
 	case KW_TIME_DAY:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909111600.x8BG03or055111>