Fix valgrind complaints of uninitialized memory

This commit is contained in:
Pasi Kallinen
2016-05-23 16:21:36 +03:00
parent bc91a01fdd
commit e37da61b30
6 changed files with 7 additions and 1 deletions

View File

@@ -2516,7 +2516,7 @@ struct obj *no_wish;
int halfeaten, mntmp, contents;
int islit, unlabeled, ishistoric, isdiluted, trapped;
int tmp, tinv, tvariety;
int wetness, gsize;
int wetness, gsize = 0;
struct fruit *f;
int ftype = context.current_fruit;
char fruitbuf[BUFSZ];