about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-31 09:32:19 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-31 09:32:19 -0400
commit3ddd0a34bcf01f767494e81796250735b3f2ae9b (patch)
treeb0df9be5223995a71de4c823a417d131a6ba4231
parentf6fdd81ed87315ef3c87505f9a9eaabf71d756bb (diff)
downloadxombrero-3ddd0a34bcf01f767494e81796250735b3f2ae9b.tar.gz
Stop crash with old libsoups, kill warning with never ones
Reported by Thomas in the irc channel
-rw-r--r--xombrero.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c
index b52cf77..529490e 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -766,6 +766,8 @@ match_alias(char *url_in)
 	if (a != NULL) {
 		DNPRINTF(XT_D_URL, "match_alias: matched alias %s\n",
 		    a->a_name);
+		if (arg == NULL)
+			arg = "";
 		enc_arg = soup_uri_encode(arg, XT_RESERVED_CHARS);
 		sv = g_strsplit(a->a_uri, "%s", 2);
 		if (arg != NULL)