summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
Diffstat (limited to 'pith')
-rw-r--r--pith/charconv/filesys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pith/charconv/filesys.c b/pith/charconv/filesys.c
index 2515c99a..a346f323 100644
--- a/pith/charconv/filesys.c
+++ b/pith/charconv/filesys.c
@@ -58,6 +58,7 @@ fname_to_locale(char *fname)
if(fname == NULL){ /* special call to free memory */
if(fname_locale_buf) fs_give((void **) &fname_locale_buf);
+ fname_locale_len = 0;
return NULL;
}
@@ -110,6 +111,7 @@ fname_to_utf8(char *fname)
if(fname == NULL){ /* special call to free memory */
if(fname_utf8_buf) fs_give((void **) &fname_utf8_buf);
+ fname_utf8_len = 0;
return NULL;
}