Avoid empty strings for yaz_iconv_open
[yaz-moved-to-github.git] / src / record_render.c
index 16351a2..ddfd391 100644 (file)
@@ -28,7 +28,7 @@ static yaz_iconv_t iconv_create_charset(const char *record_charset,
     char *from_set1 = 0;
     char *from_set2 = 0;
     char *to_set = 0;
-    if (record_charset)
+    if (record_charset && *record_charset)
     {
         char *cp = charset_buf;