author | ecalot
<ecalot> 2005-12-29 10:54:33 UTC |
committer | ecalot
<ecalot> 2005-12-29 10:54:33 UTC |
parent | f0b9250628aced0f6f32ebb9947f71ce02c85083 |
PR/src/lib/xml/tree.c | +1 | -1 |
PR/src/lib/xml/unknown.c | +1 | -1 |
diff --git a/PR/src/lib/xml/tree.c b/PR/src/lib/xml/tree.c index 74bf5cf..4cdd07d 100644 --- a/PR/src/lib/xml/tree.c +++ b/PR/src/lib/xml/tree.c @@ -173,7 +173,7 @@ void unknown_deletetreefile(const char* file) { } /* inheritance fixing */ -#define TotalInheritance(a) if (equalsIgnoreCase(parent->a,child->a)) {freeAllocation(child->a);child->a=NULL;} +#define TotalInheritance(a) if (parent->a&&child->a&&equalsIgnoreCase(parent->a,child->a)) {freeAllocation(child->a);child->a=NULL;} void rec_tree_fix(tTag* parent,tTag* child) { if (parent) { diff --git a/PR/src/lib/xml/unknown.c b/PR/src/lib/xml/unknown.c index 74bf5cf..4cdd07d 100644 --- a/PR/src/lib/xml/unknown.c +++ b/PR/src/lib/xml/unknown.c @@ -173,7 +173,7 @@ void unknown_deletetreefile(const char* file) { } /* inheritance fixing */ -#define TotalInheritance(a) if (equalsIgnoreCase(parent->a,child->a)) {freeAllocation(child->a);child->a=NULL;} +#define TotalInheritance(a) if (parent->a&&child->a&&equalsIgnoreCase(parent->a,child->a)) {freeAllocation(child->a);child->a=NULL;} void rec_tree_fix(tTag* parent,tTag* child) { if (parent) {