Skip to content

Commit 51bf661

Browse files
committed
Fix: error C4703: potentially uninitialized local pointer variable 'digtxt' used (windows build).
1 parent a44c71a commit 51bf661

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/evilhack-changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -4007,4 +4007,6 @@ The following changes to date are:
40074007
damage
40084008
- Draugr knights shouldn't start with apples and oranges
40094009
- Fix: chopping boulder at tree spot
4010+
- Fix: error C4703: potentially uninitialized local pointer variable
4011+
'digtxt' used (windows build)
40104012

src/dig.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ dig(VOID_ARGS)
398398
}
399399

400400
if (context.digging.effort > 100) {
401-
const char *digtxt, *dmgtxt = (const char *) 0;
401+
const char *digtxt = (const char *) 0,
402+
*dmgtxt = (const char *) 0;
402403
struct obj *obj, *bobj;
403404
boolean shopedge = *in_rooms(dpx, dpy, SHOPBASE);
404405
int digtyp = dig_typ(uwep, dpx, dpy);

0 commit comments

Comments
 (0)