Show More
@@ -690,10 +690,14 b' static int index_find_node(indexObject *' | |||
|
690 | 690 | } else { |
|
691 | 691 | for (rev = self->ntrev - 1; rev >= 0; rev--) { |
|
692 | 692 | const char *n = index_node(self, rev); |
|
693 | if (n == NULL) | |
|
693 | if (n == NULL) { | |
|
694 | self->ntrev = rev + 1; | |
|
694 | 695 | return -2; |
|
695 | if (nt_insert(self, n, rev) == -1) | |
|
696 | } | |
|
697 | if (nt_insert(self, n, rev) == -1) { | |
|
698 | self->ntrev = rev + 1; | |
|
696 | 699 | return -3; |
|
700 | } | |
|
697 | 701 | if (memcmp(node, n, nodelen > 20 ? 20 : nodelen) == 0) { |
|
698 | 702 | break; |
|
699 | 703 | } |
General Comments 0
You need to be logged in to leave comments.
Login now