summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-28 15:38:40 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-28 15:38:40 +0200
commit9a91c7a1f9134f799b8672a4e3844781263e8cf3 (patch)
treeb4d1b0fec0414e075c5a8e3cd6999d2147d2d8b0 /src/charset.c
parent0e19fc07e73214f94441cb3a495504a1de21eb07 (diff)
downloadvim-git-9a91c7a1f9134f799b8672a4e3844781263e8cf3.tar.gz
patch 8.0.1229: condition in vim_str2nr() is always truev8.0.1229
Problem: Condition in vim_str2nr() is always true. (Nikolai Pavlov) Solution: Remove the condition. (Closes #2259)
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index 4516816fe..a8b704c69 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -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;
}