Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/robots Fixi uninit vars warnings.
details: https://anonhg.NetBSD.org/src/rev/ab3bcf0a6a95
branches: trunk
changeset: 472997:ab3bcf0a6a95
user: christos <christos%NetBSD.org@localhost>
date: Sun May 16 00:15:46 1999 +0000
description:
Fixi uninit vars warnings.
diffstat:
games/robots/auto.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7160e445695a -r ab3bcf0a6a95 games/robots/auto.c
--- a/games/robots/auto.c Sun May 16 00:03:35 1999 +0000
+++ b/games/robots/auto.c Sun May 16 00:15:46 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auto.c,v 1.2 1999/05/16 00:03:35 christos Exp $ */
+/* $NetBSD: auto.c,v 1.3 1999/05/16 00:15:46 christos Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -181,7 +181,7 @@
closest_robot(dist)
int *dist;
{
- COORD *rob, *end, *minrob;
+ COORD *rob, *end, *minrob = NULL;
int tdist, mindist;
mindist = 1000000;
@@ -205,7 +205,7 @@
closest_heap(dist)
int *dist;
{
- COORD *hp, *end, *minhp;
+ COORD *hp, *end, *minhp = NULL;
int mindist, tdist;
mindist = 1000000;
Home |
Main Index |
Thread Index |
Old Index