mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
refactor: replace '\0' with NUL
This commit is contained in:

committed by
Lewis Russell

parent
2f5b8a0092
commit
a18982cb83
@@ -8910,7 +8910,7 @@ bool eval_has_provider(const char *feat, bool throw_if_fast)
|
||||
|
||||
char name[32]; // Normalized: "python3_compiled" => "python3".
|
||||
snprintf(name, sizeof(name), "%s", feat);
|
||||
strchrsub(name, '_', '\0'); // Chop any "_xx" suffix.
|
||||
strchrsub(name, '_', NUL); // Chop any "_xx" suffix.
|
||||
|
||||
char buf[256];
|
||||
typval_T tv;
|
||||
|
Reference in New Issue
Block a user