mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
Remove NULL/non-NULL tests after calls to vim_str(n)save()
This commit is contained in:
@@ -1141,8 +1141,7 @@ char_u *skip_regexp(char_u *startp, int dirc, int magic, char_u **newp)
|
||||
/* change "\?" to "?", make a copy first. */
|
||||
if (*newp == NULL) {
|
||||
*newp = vim_strsave(startp);
|
||||
if (*newp != NULL)
|
||||
p = *newp + (p - startp);
|
||||
p = *newp + (p - startp);
|
||||
}
|
||||
if (*newp != NULL)
|
||||
STRMOVE(p, p + 1);
|
||||
|
Reference in New Issue
Block a user