diff options
author | Josh Rickmar <jrick@devio.us> | 2012-08-31 09:32:19 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-08-31 09:32:19 -0400 |
commit | 3ddd0a34bcf01f767494e81796250735b3f2ae9b (patch) | |
tree | b0df9be5223995a71de4c823a417d131a6ba4231 | |
parent | f6fdd81ed87315ef3c87505f9a9eaabf71d756bb (diff) | |
download | xombrero-3ddd0a34bcf01f767494e81796250735b3f2ae9b.tar.gz |
Stop crash with old libsoups, kill warning with never ones
Reported by Thomas in the irc channel
-rw-r--r-- | xombrero.c | 2 |
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) |