[evolution-data-server] Avoid possible crash when url->path is NULL
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Avoid possible crash when url->path is NULL
- Date: Tue, 1 Nov 2011 09:58:37 +0000 (UTC)
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]