aboutsummaryrefslogtreecommitdiff
path: root/src/os/env.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2014-04-29 21:56:49 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-29 17:51:09 -0300
commit2e4613aecc712eb5e893d341da5f571f932376d5 (patch)
tree41f6b1c751181319d88cc0fdb7aed61bf732701d /src/os/env.c
parent046debb9359c85e2f2bc5c6d9481dac0025c6a80 (diff)
downloadrneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.gz
rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.tar.bz2
rneovim-2e4613aecc712eb5e893d341da5f571f932376d5.zip
Remove NUL macro
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);