projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ac9df
)
Fix for Bug #345776
author
Devashish Sharma
<dsharma@src.gnome.org>
Mon, 31 Jul 2006 06:37:04 +0000
(06:37 +0000)
committer
Devashish Sharma
<dsharma@src.gnome.org>
Mon, 31 Jul 2006 06:37:04 +0000
(06:37 +0000)
libedataserver/e-source-group.c
patch
|
blob
|
history
diff --git
a/libedataserver/e-source-group.c
b/libedataserver/e-source-group.c
index
dae08ce
..
d076000
100644
(file)
--- a/
libedataserver/e-source-group.c
+++ b/
libedataserver/e-source-group.c
@@
-416,8
+416,12
@@
e_source_group_uid_from_xmldoc (xmlDocPtr doc)
xmlNodePtr root = doc->children;
xmlChar *name;
char *retval;
-
- if (strcmp (root->name, "group") != 0)
+
+ if (root && root->name) {
+ if (strcmp (root->name, "group") != 0)
+ return NULL;
+ }
+ else
return NULL;
name = xmlGetProp (root, "uid");