Merge pull request #4095 from justinmk/coverity134885

coverity/134885: Using uninitialized value
This commit is contained in:
Justin M. Keyes
2016-01-25 00:02:12 -05:00

View File

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