aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-25 15:20:54 +0800
committerGitHub <noreply@github.com>2022-08-25 15:20:54 +0800
commitf0658fd552ec2d72cdd3f09942fe104bc6265115 (patch)
treee97a3a2c1efedce766ab68fbf901c4003811c64d /src/nvim/eval.c
parent5c9baa6f35262f75b73a82e4b2eba8f7cdf9db0a (diff)
downloadrneovim-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.c1
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;