Permalink
Browse files

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)
  • Loading branch information...
brammool committed Oct 28, 2017
1 parent 0e19fc0 commit 9a91c7a1f9134f799b8672a4e3844781263e8cf3
Showing with 3 additions and 2 deletions.
  1. +1 −2 src/charset.c
  2. +2 −0 src/version.c
View
@@ -1907,8 +1907,7 @@ vim_str2nr(
pre = 0; /* can't be octal */
break;
}
if (ptr[n] >= '0')
pre = '0'; /* assume octal */
pre = '0'; /* assume octal */
if (n == maxlen)
break;
}
View
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1229,
/**/
1228,
/**/

0 comments on commit 9a91c7a

Please sign in to comment.