about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
Diffstat (limited to 'xombrero.c')
-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)