projects
/
dana
/
obconf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23767a6
)
create new nodes with attributes correctly
author
Dana Jansens
<danakj@orodu.net>
Wed, 30 May 2007 14:39:06 +0000
(14:39 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 30 May 2007 14:39:06 +0000
(14:39 +0000)
src/tree.c
patch
|
blob
|
history
diff --git
a/src/tree.c
b/src/tree.c
index ed51f0b3ebcb3324c1ec9e0093a809ab72c8548c..a9ccefef9f35bb25ef92ddbf9c163f4315b157d3 100644
(file)
--- a/
src/tree.c
+++ b/
src/tree.c
@@
-57,8
+57,11
@@
xmlNodePtr tree_get_node(const gchar *path, const gchar *def)
if (!c) {
gint i;
+ gchar **attrs;
- c = xmlNewTextChild(n, NULL, *it, *next ? NULL : def);
+ attrs = g_strsplit(*it, ":", 0);
+
+ c = xmlNewTextChild(n, NULL, *it, *next ? NULL : attrs[0]);
for (i = 1; attrs[i]; ++i) {
gchar **eq = g_strsplit(attrs[i], "=", 2);