mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +00:00
Remove nonnullret deadcode: vim_strsave.
This commit is contained in:
@@ -11628,18 +11628,12 @@ static void f_or(typval_T *argvars, typval_T *rettv)
|
||||
*/
|
||||
static void f_pathshorten(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
char_u *p;
|
||||
|
||||
rettv->v_type = VAR_STRING;
|
||||
p = get_tv_string_chk(&argvars[0]);
|
||||
if (p == NULL)
|
||||
rettv->vval.v_string = NULL;
|
||||
else {
|
||||
p = vim_strsave(p);
|
||||
rettv->vval.v_string = p;
|
||||
if (p != NULL)
|
||||
shorten_dir(p);
|
||||
rettv->vval.v_string = get_tv_string_chk(&argvars[0]);
|
||||
if (!rettv->vval.v_string) {
|
||||
return;
|
||||
}
|
||||
rettv->vval.v_string = shorten_dir(vim_strsave(rettv->vval.v_string));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user