commit | 278e83863b2c7329f6712b8809e4aa5e6a50e13f | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 13 18:25:33 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 13 18:25:33 2020 +0200 |
tree | 8522f698730046d662834c5370a18d7060d62a02 | |
parent | df1956075d9ff7b5869fb548734bc2a7be2bce44 [diff] [blame] |
patch 8.2.0573: using :version twice leaks memory Problem: using :version twice leaks memory Solution: Only initialize variables once. (Dominique Pelle, closes #5917)
diff --git a/src/globals.h b/src/globals.h index 199a0c5..b474aa8 100644 --- a/src/globals.h +++ b/src/globals.h
@@ -1258,7 +1258,7 @@ #if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC) extern char longVersion[]; #else -EXTERN char *longVersion; +EXTERN char *longVersion INIT(= NULL); #endif /*