Remove unused assignement #3173

Based on this report
http://neovim.io/doc/reports/clang/report-808d3e.html#EndPath
This commit is contained in:
Pepe Padial 2015-08-15 17:41:34 +02:00 committed by Justin M. Keyes
parent 4912dcf3c7
commit 2bd3351c37

View File

@ -418,7 +418,6 @@ readfile (
* If the name is too long we might crash further on, quit here. * If the name is too long we might crash further on, quit here.
*/ */
if (fname != NULL && *fname != NUL) { if (fname != NULL && *fname != NUL) {
p = fname + STRLEN(fname);
if (STRLEN(fname) >= MAXPATHL) { if (STRLEN(fname) >= MAXPATHL) {
filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0); filemess(curbuf, fname, (char_u *)_("Illegal file name"), 0);
msg_end(); msg_end();