aboutsummaryrefslogtreecommitdiff
path: root/src/os/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/env.c')
-rw-r--r--src/os/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/env.c b/src/os/env.c
index e6cdb92ea8..174f142854 100644
--- a/src/os/env.c
+++ b/src/os/env.c
@@ -42,7 +42,7 @@ char *os_getenvname_at_index(size_t index)
return NULL;
}
int namesize = 0;
- while (str[namesize] != '=' && str[namesize] != NUL) {
+ while (str[namesize] != '=' && str[namesize] != '\0') {
namesize++;
}
char *name = (char *)vim_strnsave((char_u *)str, namesize);