diff arogue7/fight.c @ 211:382ff498acdd

Initialize some more pointers for the benefit of MSVC. There should be no more errors with Visual Studio 2015, in Debug or Release mode.
author John "Elwin" Edwards
date Thu, 21 Jan 2016 21:10:23 -0500
parents 1cd604c827a3
children f9ef86cf22b2
line wrap: on
line diff
--- a/arogue7/fight.c	Sun Jan 17 18:59:50 2016 -0500
+++ b/arogue7/fight.c	Thu Jan 21 21:10:23 2016 -0500
@@ -733,7 +733,7 @@
 register char *er, *ee;
 bool back_stab, thrown, short_msg;
 {
-    register char *s;
+    register char *s = "";
     char          att_name[LINELEN],	/* Name of attacker */
 		  def_name[LINELEN]; /* Name of defender */
 
@@ -797,7 +797,7 @@
 register char *er, *ee;
 bool thrown, short_msg;
 {
-    register char *s;
+    register char *s = "";
     char
     	          att_name[LINELEN],	/* Name of attacker */
 		  def_name[LINELEN]; /* Name of defender */