Add initialization of a local variable to appease -Wuninitialized.

Marked with XXXGCC for hpcarm (found while compiling for it).
It appears that the reason is that gcc for this target is not able
to determine unchanging complementary conditionals and sort out the
corresponding assignment / use.
This commit is contained in:
he 2005-06-07 14:01:49 +00:00
parent e670882cec
commit 07950b9fb6

View File

@ -1,4 +1,4 @@
/* $NetBSD: data.c,v 1.2 2002/12/15 09:13:21 takemura Exp $ */
/* $NetBSD: data.c,v 1.3 2005/06/07 14:01:49 he Exp $ */
/*-
* Copyright (c) 2002 TAKEMRUA Shin
@ -41,7 +41,7 @@
#ifndef lint
#include <sys/cdefs.h>
__RCSID("$NetBSD: data.c,v 1.2 2002/12/15 09:13:21 takemura Exp $");
__RCSID("$NetBSD: data.c,v 1.3 2005/06/07 14:01:49 he Exp $");
#endif /* not lint */
static void *
@ -259,6 +259,8 @@ write_data(char *filename, struct tpctl_data *data)
struct tpctl_data_elem *elem;
char *p, tmpfile[MAXPATHLEN + 1];
fd = 0; /* XXXGCC -Wuninitialized [hpcarm] */
if (filename == NULL) {
fp = stdout;
} else {