aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/strlist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-05-23 16:19:43 +0000
committerWerner Koch <[email protected]>2006-05-23 16:19:43 +0000
commitfbe4ac37f6d3e7870e26caffb0d21c3c77198297 (patch)
treef21028be87bda6df4f2f1e3ae105feeb5a2eb158 /jnlib/strlist.c
parent2006-05-19 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-fbe4ac37f6d3e7870e26caffb0d21c3c77198297.tar.gz
gnupg-fbe4ac37f6d3e7870e26caffb0d21c3c77198297.zip
g10/ does build again.
Diffstat (limited to 'jnlib/strlist.c')
-rw-r--r--jnlib/strlist.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/jnlib/strlist.c b/jnlib/strlist.c
index d1924c102..52b4d5869 100644
--- a/jnlib/strlist.c
+++ b/jnlib/strlist.c
@@ -95,22 +95,24 @@ append_to_strlist( strlist_t *list, const char *string )
return sl;
}
-#if 0
+
+#ifdef JNLIB_NEED_UTF8CONV
strlist_t
append_to_strlist2( strlist_t *list, const char *string, int is_utf8 )
{
- strlist_t sl;
-
- if( is_utf8 )
- sl = append_to_strlist( list, string );
- else {
- char *p = native_to_utf8( string );
- sl = append_to_strlist( list, p );
- m_free( p );
+ strlist_t sl;
+
+ if( is_utf8 )
+ sl = append_to_strlist( list, string );
+ else
+ {
+ char *p = native_to_utf8 (string);
+ sl = append_to_strlist( list, p );
+ jnlib_free( p );
}
- return sl;
+ return sl;
}
-#endif
+#endif /* JNLIB_NEED_UTF8CONV */
/* Return a copy of LIST. */