diff options
Diffstat (limited to 'xpath.c')
-rw-r--r-- | xpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -361,13 +361,13 @@ turtle_comparison: /* * compute depth to root */ - for (depth2 = 0, cur = node2;cur->parent != NULL;cur = cur->parent) { + for (depth2 = 0, cur = node2; cur != NULL; cur = cur->parent) { if (cur == node1) return(1); depth2++; } root = cur; - for (depth1 = 0, cur = node1;cur->parent != NULL;cur = cur->parent) { + for (depth1 = 0, cur = node1; cur != NULL; cur = cur->parent) { if (cur == node2) return(-1); depth1++; |