summaryrefslogtreecommitdiff
path: root/usr.bin/msgc/msg_sys.def
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2006-05-12 07:19:43 +0000
committerhe <he@NetBSD.org>2006-05-12 07:19:43 +0000
commitafd5b9b6d34c433885cc50794c5bb28cca2fda4b (patch)
tree7233e8c031e21face7b49d2bc9ae69300d6e4233 /usr.bin/msgc/msg_sys.def
parentef526ff868093e2c3d7c593f59fc30b2152adb20 (diff)
Appease gcc 3.3.3 -Wuninitialized warning; fixes build problem for
a multitude of archtectures (prep, alpha, i386, acorn32 and probably more). To be documented in doc/HACKS.
Diffstat (limited to 'usr.bin/msgc/msg_sys.def')
-rw-r--r--usr.bin/msgc/msg_sys.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/msgc/msg_sys.def b/usr.bin/msgc/msg_sys.def
index 7d9962559be..a714a80b107 100644
--- a/usr.bin/msgc/msg_sys.def
+++ b/usr.bin/msgc/msg_sys.def
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_sys.def,v 1.32 2005/04/09 13:12:31 dsl Exp $ */
+/* $NetBSD: msg_sys.def,v 1.33 2006/05/12 07:19:43 he Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -465,7 +465,8 @@ msg_prompt_win(msg msg_no, int x, int y, int w, int h,
const char *def, char *val, size_t max_chars, ...)
{
va_list ap;
- WINDOW *win, *svmsg, *sv_win;
+ WINDOW *win
+ WINDOW *svmsg = NULL, *sv_win = NULL; /* XXX -Wuninitialized [many] */
int maxx, maxy;
int msg_flags = MSG_PROMPT_ECHO | MSG_PROMPT_HIDE_DFLT;