diff options
author | martin <martin@NetBSD.org> | 2005-06-30 13:44:48 +0000 |
---|---|---|
committer | martin <martin@NetBSD.org> | 2005-06-30 13:44:48 +0000 |
commit | 0df26654ae82ce5f9c6df1841860503a5b0e0c9d (patch) | |
tree | 72f6f89161e388f49e79a74795a2093270a0fa48 /ching | |
parent | 2646401289fb6ac1e1f4efeaf9d59e028bdd931e (diff) | |
download | bsdgames-darwin-0df26654ae82ce5f9c6df1841860503a5b0e0c9d.tar.gz bsdgames-darwin-0df26654ae82ce5f9c6df1841860503a5b0e0c9d.tar.zst bsdgames-darwin-0df26654ae82ce5f9c6df1841860503a5b0e0c9d.zip |
Initialize lnum and unum to avoid a "might be used uninitialized"
warning.
Diffstat (limited to 'ching')
-rw-r--r-- | ching/printching/printching.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ching/printching/printching.c b/ching/printching/printching.c index 818ca96e..3f70d941 100644 --- a/ching/printching/printching.c +++ b/ching/printching/printching.c @@ -1,4 +1,4 @@ -/* $NetBSD: printching.c,v 1.1 2005/06/30 13:30:33 perry Exp $ */ +/* $NetBSD: printching.c,v 1.2 2005/06/30 13:44:48 martin Exp $ */ /* * Copyright (c) 1988, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)ching.phx.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: printching.c,v 1.1 2005/06/30 13:30:33 perry Exp $"); +__RCSID("$NetBSD: printching.c,v 1.2 2005/06/30 13:44:48 martin Exp $"); #endif #endif /* not lint */ @@ -137,7 +137,7 @@ int doahex(void) { int lower, upper; /* encoded values of lower and upper trigrams */ - int lnum, unum; /* indices of upper and lower trigrams */ + int lnum = 0, unum = 0; /* indices of upper and lower trigrams */ int i; lower = codem(0); |