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:
parent
71bc6ff210
commit
11f7731a3d
3 changed files with 4 additions and 4 deletions
|
|
@ -733,7 +733,7 @@ bool see_att, see_def;
|
||||||
register char *er, *ee;
|
register char *er, *ee;
|
||||||
bool back_stab, thrown, short_msg;
|
bool back_stab, thrown, short_msg;
|
||||||
{
|
{
|
||||||
register char *s;
|
register char *s = "";
|
||||||
char att_name[LINELEN], /* Name of attacker */
|
char att_name[LINELEN], /* Name of attacker */
|
||||||
def_name[LINELEN]; /* Name of defender */
|
def_name[LINELEN]; /* Name of defender */
|
||||||
|
|
||||||
|
|
@ -797,7 +797,7 @@ bool see_att, see_def;
|
||||||
register char *er, *ee;
|
register char *er, *ee;
|
||||||
bool thrown, short_msg;
|
bool thrown, short_msg;
|
||||||
{
|
{
|
||||||
register char *s;
|
register char *s = "";
|
||||||
char
|
char
|
||||||
att_name[LINELEN], /* Name of attacker */
|
att_name[LINELEN], /* Name of attacker */
|
||||||
def_name[LINELEN]; /* Name of defender */
|
def_name[LINELEN]; /* Name of defender */
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,7 @@ short monst;
|
||||||
* Insert player in list if need be
|
* Insert player in list if need be
|
||||||
*/
|
*/
|
||||||
if (!waswizard) {
|
if (!waswizard) {
|
||||||
char *login;
|
char *login = "";
|
||||||
|
|
||||||
if (flags != UPDATE) {
|
if (flags != UPDATE) {
|
||||||
login = md_getusername();
|
login = md_getusername();
|
||||||
|
|
|
||||||
|
|
@ -388,7 +388,7 @@ read_scroll()
|
||||||
}
|
}
|
||||||
when S_BAN: {
|
when S_BAN: {
|
||||||
int howdeep;
|
int howdeep;
|
||||||
char *ptr;
|
char *ptr = "";
|
||||||
|
|
||||||
if (bless) {
|
if (bless) {
|
||||||
if (level > 6) {
|
if (level > 6) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue