[evolution-data-server] Avoid possible crash when url->path is NULL



commit 50692f0bf326c0aba914280b7dfa007e64a3ed0c
Author: Milan Crha <mcrha redhat com>
Date:   Tue Nov 1 10:58:05 2011 +0100

    Avoid possible crash when url->path is NULL

 camel/camel-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-service.c b/camel/camel-service.c
index d05ab53..61d9929 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -167,7 +167,7 @@ service_find_old_data_dir (CamelService *service)
 		}
 	}
 
-	if (needs_path) {
+	if (needs_path && url->path) {
 		if (*url->path != '/')
 			g_string_append_c (path, '/');
 		g_string_append (path, url->path);



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