diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-13 18:25:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-13 18:25:33 +0200 |
commit | 278e83863b2c7329f6712b8809e4aa5e6a50e13f (patch) | |
tree | 8522f698730046d662834c5370a18d7060d62a02 /src/globals.h | |
parent | df1956075d9ff7b5869fb548734bc2a7be2bce44 (diff) |
patch 8.2.0573: using :version twice leaks memoryv8.2.0573
Problem: using :version twice leaks memory
Solution: Only initialize variables once. (Dominique Pelle, closes #5917)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index 199a0c5e7a..b474aa8bc3 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1258,7 +1258,7 @@ extern char *Version; #if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC) extern char longVersion[]; #else -EXTERN char *longVersion; +EXTERN char *longVersion INIT(= NULL); #endif /* |