From 9a91c7a1f9134f799b8672a4e3844781263e8cf3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 28 Oct 2017 15:38:40 +0200 Subject: 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) --- src/charset.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index 4516816fe4..a8b704c698 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; } -- cgit v1.2.3