Mercurial > hg > early-roguelike
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 */