diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 21:33:10 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 21:43:25 +0300 |
commit | 316789e14c3910c0b4c5dd710a1c82ebd7b01ac2 (patch) | |
tree | 501d3217b43333fc32a040b1f5841a36477b75b9 /src | |
parent | c0cbc507202231d5dd9c5c8669e6116f3344d535 (diff) | |
download | rneovim-316789e14c3910c0b4c5dd710a1c82ebd7b01ac2.tar.gz rneovim-316789e14c3910c0b4c5dd710a1c82ebd7b01ac2.tar.bz2 rneovim-316789e14c3910c0b4c5dd710a1c82ebd7b01ac2.zip |
tag: Silence “buffer underflow” warning
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index f01b8b8ab1..1ce2a4e2eb 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -1222,9 +1222,9 @@ find_tags ( if (has_re && orgpat.regmatch.regprog == NULL) goto findtag_end; - /* This is only to avoid a compiler warning for using search_info - * uninitialised. */ - memset(&search_info, 0, (size_t)1); + // This is only to avoid a compiler warning for using search_info + // uninitialised. + memset(&search_info, 0, 1); // -V512 /* * When finding a specified number of matches, first try with matching |