Christian Brabandt wrote:
> On Di, 26 Feb 2013, Bram Moolenaar wrote:
>
> > + rettv->vval.v_string = vim_strsave("");
>
> I just got a warning from this line. I think, this should be
>
> diff --git a/src/eval.c b/src/eval.c
> --- a/src/eval.c
> +++ b/src/eval.c
> @@ -5170,7 +5170,7 @@
> * what follows. So set it here. */
> if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(')
> {
> - rettv->vval.v_string = vim_strsave("");
> + rettv->vval.v_string = vim_strsave((char_u *)"");
> rettv->v_type = VAR_FUNC;
> }
>
Ah, missed the warning. Thanks.
--
A consultant is a person who takes your money and annoys your employees while
tirelessly searching for the best way to extend the consulting contract.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.