summaryrefslogtreecommitdiff
path: root/pith/charconv
diff options
context:
space:
mode:
Diffstat (limited to 'pith/charconv')
-rw-r--r--pith/charconv/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/charconv/utf8.c b/pith/charconv/utf8.c
index 2bb301c7..e1f16b3f 100644
--- a/pith/charconv/utf8.c
+++ b/pith/charconv/utf8.c
@@ -283,7 +283,7 @@ convert_to_utf8(char *str, char *fromcharset, int flags)
}
/* else no conversion necessary */
- if(result.data)
+ if(result.data && result.data != src.data)
fs_give((void **) &result.data);
result.size = 0;