summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-08-21 23:50:47 -0600
committerEduardo Chappa <chappa@washington.edu>2018-08-21 23:50:47 -0600
commit8dc90e0f6aada498ae26b691ec7e6158a741cd2e (patch)
treed8d6349c691ea1cf52be8efd7d97282b9dafe12a /pith
parent6adcfccbce3a18928e66b7886695a44cbb1a5b75 (diff)
downloadalpine-8dc90e0f6aada498ae26b691ec7e6158a741cd2e.tar.xz
* Crashing bug when suspending Alpine and attempting to return to
Alpine from a subshell. Reported by Andreas Schamanek.
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;
}