diff lib/protocols.c @ 188:836822c2d4e7

2003-6-16 Brian Masney <masneyb@gftp.org> * lib/protocols.c (gftp_string_to_utf8) - return if request is NULL
author masneyb
date Tue, 17 Jun 2003 10:54:59 +0000
parents a8ec69e39112
children 1e74b7796232
line wrap: on
line diff
--- a/lib/protocols.c	Tue Jun 17 10:51:49 2003 +0000
+++ b/lib/protocols.c	Tue Jun 17 10:54:59 2003 +0000
@@ -368,6 +368,9 @@
   gsize bread, bwrite;
   GError * error;
 
+  if (request == NULL)
+    return (NULL);
+
   if (request->iconv_initialized)
     return (g_convert_with_iconv (str, -1, request->iconv, &bread, &bwrite, 
                                   &error));