1
0
Fork 0

07: C: Assume no duplicate ls runs

This commit is contained in:
Mia Herkt 2022-12-07 22:42:09 +01:00
parent 327cbf6d6b
commit 5a1a8bb571
Signed by: mia
GPG Key ID: 72E154B8622EC191
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ int main(int argc, char **argv) {
current = findent(current, 1, l + 5);
}
} else if (l[0] == 'd') {
if (!findent(current, 1, l + 4))
addent(current, 1, l + 4);
addent(current, 1, l + 4);
} else {
char *p;
size_t sz = strtoul(l, &p, 10);