diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/var.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/var.c b/src/var.c index 3f10c46..a7791eb 100644 --- a/src/var.c +++ b/src/var.c @@ -232,7 +232,7 @@ setvar(const char *name, const char *val, int flags) INTOFF; p = mempcpy(nameeq = ckmalloc(namelen + vallen + 2), name, namelen); *p++ = '\0'; - if (vallen) { + if (val) { p[-1] = '='; p = mempcpy(p, val, vallen); } |