aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-url.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-url.c')
-rw-r--r--e-util/e-url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/e-util/e-url.c b/e-util/e-url.c
index b96ee9cf9b..8dba46b62b 100644
--- a/e-util/e-url.c
+++ b/e-util/e-url.c
@@ -115,6 +115,9 @@ e_uri_new (const char *uri_string)
const char *end, *hash, *colon, *semi, *at, *slash, *question;
const char *p;
+ if (!uri_string)
+ return NULL;
+
uri = g_new0 (EUri, 1);
/* find fragment */