From fd275341325c2303c20d99e84f6102627b80d295 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 18 Sep 2017 20:23:31 +0200 Subject: [PATCH] coverity CID 173897 Pointer to local outside scope --- clibs | 2 +- src/reports.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clibs b/clibs index 2a55c27fe..da2c0cc39 160000 --- a/clibs +++ b/clibs @@ -1 +1 @@ -Subproject commit 2a55c27fedec76845cf82c758b7b7c3fa649c286 +Subproject commit da2c0cc39b27c98ed8d31b0503426788fc236bd8 diff --git a/src/reports.c b/src/reports.c index cc11f4006..daf1ffca4 100644 --- a/src/reports.c +++ b/src/reports.c @@ -1701,7 +1701,7 @@ static void var_free_regions(variant x) /*-V524 */ const char *trailinto(const region * r, const struct locale *lang) { - char ref[32]; + static char ref[32]; const char *s; if (r) { const char *tname = terrain_name(r);