changeset 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 c4f2e1bda8b0
children 12e070d1a780
files arogue7/fight.c arogue7/rip.c srogue/scrolls.c
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
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 */
--- a/arogue7/rip.c	Sun Jan 17 18:59:50 2016 -0500
+++ b/arogue7/rip.c	Thu Jan 21 21:10:23 2016 -0500
@@ -394,7 +394,7 @@
      * Insert player in list if need be
      */
     if (!waswizard) {
-	char *login;
+	char *login = "";
 
 	if (flags != UPDATE) {
             login = md_getusername();
--- a/srogue/scrolls.c	Sun Jan 17 18:59:50 2016 -0500
+++ b/srogue/scrolls.c	Thu Jan 21 21:10:23 2016 -0500
@@ -388,7 +388,7 @@
 		}
 	when S_BAN: {
 		int howdeep;
-		char *ptr;
+		char *ptr = "";
 
 		if (bless) {
 			if (level > 6) {