diff rogue3/move.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
line wrap: on
line diff
--- a/rogue3/move.c	Thu Jul 23 19:28:12 2015 -0400
+++ b/rogue3/move.c	Fri Jul 31 15:34:34 2015 -0400
@@ -339,7 +339,7 @@
     int ch;
     int ex, ey, nopen = 0;
     struct linked_list *item;
-    struct object *obj;
+    struct object *obj = NULL;
     static coord ret;  /* what we will be returning */
     static coord dest;