Initialize some more pointers for the benefit of MSVC.

There should be no more errors with Visual Studio 2015, in Debug or
Release mode.
This commit is contained in:
John "Elwin" Edwards 2016-01-21 21:10:23 -05:00
parent 71bc6ff210
commit 11f7731a3d
3 changed files with 4 additions and 4 deletions

View file

@ -733,7 +733,7 @@ bool see_att, see_def;
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 @@ bool see_att, see_def;
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 */

View file

@ -394,7 +394,7 @@ short monst;
* Insert player in list if need be
*/
if (!waswizard) {
char *login;
char *login = "";
if (flags != UPDATE) {
login = md_getusername();

View file

@ -388,7 +388,7 @@ read_scroll()
}
when S_BAN: {
int howdeep;
char *ptr;
char *ptr = "";
if (bless) {
if (level > 6) {