Hi Bram!

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;
                }


Mit freundlichen Grüßen
Christian
-- 
Ich habe zuweilen gefunden, daß das einzige Gute, was noch in großen
adeligen Familien nachwuchs - z.B. bei Gieg - bloß dem bürgerlichen
Hofmeister zu danken war.
                -- Jean Paul

-- 
-- 
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.


Raspunde prin e-mail lui