diff src/ex_docmd.c @ 6156:20dbceb6f471

updated for version 7.4.415 Problem: Cannot build. Warning for shadowed variable. (John Little) Solution: Add missing change. Remove declaration.
author Bram Moolenaar <bram@vim.org>
date Sat, 23 Aug 2014 14:16:20 +0200
parents 67edf731a240
children 5672a06e4bd8
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2150,9 +2150,9 @@ do_one_cmd(cmdlinep, sourcing,
 	    && ASCII_ISUPPER(*ea.cmd)
 	    && has_cmdundefined())
     {
-	char_u *p = ea.cmd;
 	int ret;
 
+	p = ea.cmd;
 	while (ASCII_ISALNUM(*p))
 	    ++p;
 	p = vim_strnsave(ea.cmd, p - ea.cmd);