0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 8.0.1229: condition in vim_str2nr() is always true

Problem:    Condition in vim_str2nr() is always true. (Nikolai Pavlov)
Solution:   Remove the condition. (Closes #2259)
This commit is contained in:
Bram Moolenaar
2017-10-28 15:38:40 +02:00
parent 0e19fc07e7
commit 9a91c7a1f9
2 changed files with 3 additions and 2 deletions

View File

@@ -1907,7 +1907,6 @@ vim_str2nr(
pre = 0; /* can't be octal */
break;
}
if (ptr[n] >= '0')
pre = '0'; /* assume octal */
if (n == maxlen)
break;

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1229,
/**/
1228,
/**/