seahorse r2946 - in trunk: . pgp



Author: nnielsen
Date: Tue Mar 17 03:08:41 2009
New Revision: 2946
URL: http://svn.gnome.org/viewvc/seahorse?rev=2946&view=rev

Log:
Fix crash when entering hkp: url manually.

Fixes bug #575225

Modified:
   trunk/ChangeLog
   trunk/pgp/seahorse-hkp-source.c

Modified: trunk/pgp/seahorse-hkp-source.c
==============================================================================
--- trunk/pgp/seahorse-hkp-source.c	(original)
+++ trunk/pgp/seahorse-hkp-source.c	Tue Mar 17 03:08:41 2009
@@ -1059,7 +1059,7 @@
         /* Must be http or https, have a host. No querystring, user, path, passwd etc... */
         if ((soup->scheme == SOUP_URI_SCHEME_HTTP || soup->scheme == SOUP_URI_SCHEME_HTTPS) && 
             !soup->user && !soup->password && !soup->query && !soup->fragment &&
-            g_str_equal (soup->path, "/"))
+            soup->host && g_str_equal (soup->path ? soup->path : "/", "/"))
             ret = TRUE;
         soup_uri_free (soup);
     }



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