mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
coverity/134885: Using uninitialized value
Case: (dobin > 1) && (pre != 0)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user