From a320f7a9bc65887e63bd51f3e000b5a4f42f60d0 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Fri, 13 Dec 2024 10:58:18 +0700 Subject: [PATCH] fix clang-tidy warning --- src/u_mapinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)