changeset 195:beab22b087a1

Advanced Rogue 5: initialize some variables.
author John "Elwin" Edwards
date Tue, 11 Aug 2015 13:13:08 -0400
parents 68a63ddfbe14
children 80a590e67206
files arogue5/player.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/arogue5/player.c	Tue Aug 11 12:28:17 2015 -0400
+++ b/arogue5/player.c	Tue Aug 11 13:13:08 2015 -0400
@@ -168,7 +168,7 @@
 
     else if (slow_invent) {
 	register char c;
-        char *spellp;
+        char *spellp = "";
 
 	for (i=0; i<num_spells; i++) {
 	    msg("");
@@ -375,7 +375,7 @@
 
     else if (slow_invent) {
 	register char c;
-        char *prayerp;
+        char *prayerp = "";
 
 	for (i=0; i<num_prayers; i++) {
 	    msg("");