coverity/134885: Using uninitialized value

Case: (dobin > 1) && (pre != 0)
This commit is contained in:
Justin M. Keyes
2016-01-24 23:17:13 -05:00
parent e1d81178cc
commit 41434e6881

View File

@@ -1791,7 +1791,7 @@ void vim_str2nr(char_u *start, int *prep, int *len,
int pre = 0; // default is decimal
int negative = false;
unsigned long un = 0;
int n;
int n = 0;
if (ptr[0] == '-') {
negative = true;