diff options
author | James McCoy <jamessan@jamessan.com> | 2018-01-23 17:56:50 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2018-01-23 17:56:50 -0500 |
commit | 3ff92ba1ee54a9400aac143f4d98d356dc6a8321 (patch) | |
tree | 97bae51783d202fbe0bd447b5f5f4742679b89ed /src/nvim/diff.c | |
parent | 15119f943ab8c2d089f45969da06b6b58b4d0036 (diff) | |
download | rneovim-3ff92ba1ee54a9400aac143f4d98d356dc6a8321.tar.gz rneovim-3ff92ba1ee54a9400aac143f4d98d356dc6a8321.tar.bz2 rneovim-3ff92ba1ee54a9400aac143f4d98d356dc6a8321.zip |
eval: save_tv_as_string: Correctly handle an empty string
When tv_get_string_chk returns a non-NULL value, we have a valid string.
Propagating an error state (*len = -1, NULL return) for an empty string
is invalid.
Closes #6554
Diffstat (limited to 'src/nvim/diff.c')
0 files changed, 0 insertions, 0 deletions