summaryrefslogtreecommitdiff
path: root/ext/etc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/etc')
-rw-r--r--ext/etc/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 6560dd9..94b9cc3 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -642,7 +642,7 @@ etc_systmpdir(void)
#else
const char default_tmp[] = "/tmp";
const char *tmpstr = default_tmp;
- size_t tmplen = 0;
+ size_t tmplen = strlen(default_tmp);
# if defined _CS_DARWIN_USER_TEMP_DIR
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024