diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-25 15:20:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 15:20:54 +0800 |
commit | f0658fd552ec2d72cdd3f09942fe104bc6265115 (patch) | |
tree | e97a3a2c1efedce766ab68fbf901c4003811c64d /src/nvim/eval.c | |
parent | 5c9baa6f35262f75b73a82e4b2eba8f7cdf9db0a (diff) | |
download | rneovim-f0658fd552ec2d72cdd3f09942fe104bc6265115.tar.gz rneovim-f0658fd552ec2d72cdd3f09942fe104bc6265115.tar.bz2 rneovim-f0658fd552ec2d72cdd3f09942fe104bc6265115.zip |
refactor: suppress clang and PVS warnings (#19940)
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fb3270511a..1458d1ff36 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -8148,6 +8148,7 @@ repeat: // Only replace it when it starts with '~' if (*dirname == '~') { s = xstrdup(dirname); + assert(s != NULL); // suppress clang "Argument with 'nonnull' attribute passed null" *fnamep = s; xfree(*bufp); *bufp = s; |