changeset 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 2b27d1370cdc
files ChangeLog lib/protocols.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 17 10:51:49 2003 +0000
+++ b/ChangeLog	Tue Jun 17 10:54:59 2003 +0000
@@ -1,4 +1,6 @@
 2003-6-16 Brian Masney <masneyb@gftp.org>
+	* lib/protocols.c (gftp_string_to_utf8) - return if request is NULL
+
 	* lib/protocols.c - run g_iconv_close() in gftp_disconnect() instead
 	of gftp_end_transfer()
 
@@ -1024,7 +1026,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.93 2003/06/17 10:51:48 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.94 2003/06/17 10:54:56 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- 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));