gvfs r1529 - in trunk: . client



Author: alexl
Date: Tue Mar  4 14:17:20 2008
New Revision: 1529
URL: http://svn.gnome.org/viewvc/gvfs?rev=1529&view=rev

Log:
2008-03-04  Alexander Larsson  <alexl redhat com>

        * client/gdaemonvfs.c:
        (_g_daemon_vfs_get_uri_for_mountspec):
	Fix crash with NULL host (like "ftp://";)



Modified:
   trunk/ChangeLog
   trunk/client/gdaemonvfs.c

Modified: trunk/client/gdaemonvfs.c
==============================================================================
--- trunk/client/gdaemonvfs.c	(original)
+++ trunk/client/gdaemonvfs.c	Tue Mar  4 14:17:20 2008
@@ -466,7 +466,7 @@
 	decoded.scheme = (char *)type;
       decoded.host = (char *)g_mount_spec_get (spec, "host");
       free_host = FALSE;
-      if (mountable && mountable->host_is_inet && strchr (decoded.host, ':') != NULL)
+      if (mountable && mountable->host_is_inet && decoded.host != NULL && strchr (decoded.host, ':') != NULL)
 	{
 	  free_host = TRUE;
 	  decoded.host = g_strconcat ("[", decoded.host, "]", NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]