diff --git a/usr.sbin/tpctl/data.c b/usr.sbin/tpctl/data.c index 751cb62eb371..165485c78243 100644 --- a/usr.sbin/tpctl/data.c +++ b/usr.sbin/tpctl/data.c @@ -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 -__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 {