mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
chore(typval): return NULL over false for pointer return type (#17316)
While we're at it, abort() for an unhandled v_type.
This commit is contained in:
parent
cf86adba61
commit
f02a5a7bda
@ -3205,8 +3205,9 @@ const char *tv_get_string_buf_chk(const typval_T *const tv, char *const buf)
|
||||
case VAR_BLOB:
|
||||
case VAR_UNKNOWN:
|
||||
emsg(_(str_errors[tv->v_type]));
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
abort();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user