diff src/scriptfile.c @ 29320:a74398c432a4 v9.0.0003

patch 9.0.0003: functions are global while they could be local Commit: https://github.com/vim/vim/commit/ee47eaceaa148e07b566ff420f9a3c2edde2fa34 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Jun 29 12:55:36 2022 +0100 patch 9.0.0003: functions are global while they could be local Problem: Functions are global while they could be local. Solution: Add "static". Add a few tests. (Yegappan Lakshmanan, closes #10612)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Jun 2022 14:00:03 +0200
parents 6a7d94628b5a
children 32f358d71ec2
line wrap: on
line diff
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -2346,7 +2346,7 @@ source_finished(
  * Find the path of a script below the "autoload" directory.
  * Returns NULL if there is no "/autoload/" in the script name.
  */
-    char_u *
+    static char_u *
 script_name_after_autoload(scriptitem_T *si)
 {
     char_u	*p = si->sn_name;