From 8dc90e0f6aada498ae26b691ec7e6158a741cd2e Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 21 Aug 2018 23:50:47 -0600 Subject: * Crashing bug when suspending Alpine and attempting to return to Alpine from a subshell. Reported by Andreas Schamanek. --- pith/charconv/filesys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pith/charconv') 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; } -- cgit v1.2.3-54-g00ecf