diff rogue3/passages.c @ 180:d9e44e18eeec

rogue3: initialize various pointers. MSVC is afraid they might get used while uninitialized.
author John "Elwin" Edwards
date Fri, 31 Jul 2015 15:34:34 -0400
parents 527e2150eaf0
children e52a8a7ad4c5
line wrap: on
line diff
--- a/rogue3/passages.c	Thu Jul 23 19:28:12 2015 -0400
+++ b/rogue3/passages.c	Fri Jul 31 15:34:34 2015 -0400
@@ -22,7 +22,7 @@
 void
 do_passages()
 {
-    struct rdes *r1, *r2;
+    struct rdes *r1, *r2 = NULL;
     int i, j;
     int roomcount;
     static struct rdes
@@ -131,7 +131,7 @@
 void
 conn(int r1, int r2)
 {
-    struct room *rpf, *rpt;
+    struct room *rpf, *rpt = NULL;
     int rmt;
     int distance, turn_spot, turn_distance;
     int rm;