adjust for recently released MS Visual Studio 2019

win\curses\cursstat.c(886) : error C4703: potentially uninitialized local pointer variable 'p' used
This commit is contained in:
nhmall
2019-04-09 00:35:02 -04:00
parent 0e425d645f
commit 5258bb0ed4
4 changed files with 32 additions and 28 deletions

View File

@@ -680,7 +680,7 @@ boolean border;
int i, fld, cap_and_hunger, time_and_score, cond_count;
char *text;
#ifdef STATUS_HILITES
char *p, savedch = '\0';
char *p = 0, savedch = '\0';
int coloridx = NO_COLOR, attrmask = 0;
#endif /* STATUS_HILITES */
int height_needed, height, width, x = 0, y = 0;