Mercurial > vim
comparison src/vim9cmds.c @ 33968:180f49745076 v9.0.2175
patch 9.0.2175: Compiler warning for uninitialized var
Commit: https://github.com/vim/vim/commit/38ce1a7ac8da8ac0a8b58a1087f56e62e6fdfaa4
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Dec 18 08:58:29 2023 +0100
patch 9.0.2175: Compiler warning for uninitialized var
Problem: Compiler warning for uninitialized var
Solution: initialize variable to NULL
closes: #13711
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Dec 2023 09:15:03 +0100 |
parents | 07ac92709982 |
children | 3cacfb652766 |
comparison
equal
deleted
inserted
replaced
33967:a3523db958eb | 33968:180f49745076 |
---|---|
1998 { | 1998 { |
1999 char_u *paren; | 1999 char_u *paren; |
2000 char_u *arg = arg_start; | 2000 char_u *arg = arg_start; |
2001 int argcount = 0; | 2001 int argcount = 0; |
2002 int defer_var_idx; | 2002 int defer_var_idx; |
2003 type_T *type; | 2003 type_T *type = NULL; |
2004 int func_idx; | 2004 int func_idx; |
2005 | 2005 |
2006 // Get a funcref for the function name. | 2006 // Get a funcref for the function name. |
2007 // TODO: better way to find the "(". | 2007 // TODO: better way to find the "(". |
2008 paren = vim_strchr(arg, '('); | 2008 paren = vim_strchr(arg, '('); |