diff --git a/src/u_mapinfo.c b/src/u_mapinfo.c index ec6e1bbde..3bb6807d7 100644 --- a/src/u_mapinfo.c +++ b/src/u_mapinfo.c @@ -203,7 +203,7 @@ static void FreeMap(mapentry_t *mape) { free(mape->author); } - mape->mapname = NULL; + memset(mape, 0, sizeof(*mape)); } static void ReplaceString(char **pptr, const char *newstring)