Module Name: src
Committed By: martin
Date: Fri Nov 3 09:56:40 UTC 2023
Modified Files:
src/usr.sbin/envstat [netbsd-10]: envstat.c
Log Message:
Pull up following revision(s) (requested by rin in ticket #450):
usr.sbin/envstat/envstat.c: revision 1.104
Silence wrong maybe-uninitialized raised by GCC/x86_64 10.4.0 -Os.
To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.103.2.1 src/usr.sbin/envstat/envstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/envstat/envstat.c
diff -u src/usr.sbin/envstat/envstat.c:1.103 src/usr.sbin/envstat/envstat.c:1.103.2.1
--- src/usr.sbin/envstat/envstat.c:1.103 Mon Nov 21 21:24:02 2022
+++ src/usr.sbin/envstat/envstat.c Fri Nov 3 09:56:39 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: envstat.c,v 1.103 2022/11/21 21:24:02 brad Exp $ */
+/* $NetBSD: envstat.c,v 1.103.2.1 2023/11/03 09:56:39 martin Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: envstat.c,v 1.103 2022/11/21 21:24:02 brad Exp $");
+__RCSID("$NetBSD: envstat.c,v 1.103.2.1 2023/11/03 09:56:39 martin Exp $");
#endif /* not lint */
#include <stdio.h>
@@ -236,7 +236,8 @@ int main(int argc, char **argv)
err(EXIT_FAILURE, "add_sensors");
}
if (sensors) {
- char *dvstring, *sstring, *p, *last, *s;
+ char *sstring, *p, *last, *s;
+ char *dvstring = NULL; /* XXXGCC */
unsigned count = 0;
s = strdup(sensors);