coverity CID 173897 Pointer to local outside scope

This commit is contained in:
Enno Rehling 2017-09-18 20:23:31 +02:00
parent 4bccc87f2b
commit fd27534132
2 changed files with 2 additions and 2 deletions

2
clibs

@ -1 +1 @@
Subproject commit 2a55c27fedec76845cf82c758b7b7c3fa649c286 Subproject commit da2c0cc39b27c98ed8d31b0503426788fc236bd8

View File

@ -1701,7 +1701,7 @@ static void var_free_regions(variant x) /*-V524 */
const char *trailinto(const region * r, const struct locale *lang) const char *trailinto(const region * r, const struct locale *lang)
{ {
char ref[32]; static char ref[32];
const char *s; const char *s;
if (r) { if (r) {
const char *tname = terrain_name(r); const char *tname = terrain_name(r);