fix weird skips
This commit is contained in:
parent
f1bc13d4e2
commit
060963039c
1 changed files with 6 additions and 1 deletions
|
@ -249,7 +249,8 @@ int path_command(char *command, hashmap *elements_rev, hashmap *already_done,
|
|||
}
|
||||
|
||||
page[strlen(page) - 1] = '\0';
|
||||
if (strlen(page) == 0) return 1;
|
||||
if (strlen(page) == 0)
|
||||
return 1;
|
||||
|
||||
if (top) {
|
||||
printf("Path of %s:\n", page);
|
||||
|
@ -287,6 +288,10 @@ int path_command(char *command, hashmap *elements_rev, hashmap *already_done,
|
|||
tmp[0] = '\0';
|
||||
tmp++;
|
||||
|
||||
if (i == 1) {
|
||||
path_command(tmp2, elements_rev, already_done, 0);
|
||||
}
|
||||
|
||||
path_command(tmp, elements_rev, already_done, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue