Commit 45058e10 authored by jimw@mysql.com's avatar jimw@mysql.com

Eliminate gcc 4.0 warning in libedit code. (Bug #9603)

parent 7e7ed0f6
...@@ -1014,7 +1014,7 @@ vi_histedit(EditLine *el, int c) ...@@ -1014,7 +1014,7 @@ vi_histedit(EditLine *el, int c)
return CC_ERROR; return CC_ERROR;
case 0: case 0:
close(fd); close(fd);
execlp("vi", "vi", tempfile, 0); execlp("vi", "vi", tempfile, (char *) NULL);
exit(0); exit(0);
/*NOTREACHED*/ /*NOTREACHED*/
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment