aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2023-12-29 20:20:20 +0100
committerJoe <rbo@gmx.us>2023-12-29 20:20:20 +0100
commitfde340dda9ded520959d7d431757d5654241c60c (patch)
tree4795f5f7630828e5f0c331a4887e26fd8fd8f3b7 /c_ldirs.go
parent>>>>>>>>>>>>>>>> revert here if needed (diff)
downloadhardflip-fde340dda9ded520959d7d431757d5654241c60c.tar.gz
hardflip-fde340dda9ded520959d7d431757d5654241c60c.tar.bz2
hardflip-fde340dda9ded520959d7d431757d5654241c60c.tar.xz
hardflip-fde340dda9ded520959d7d431757d5654241c60c.tar.zst
hardflip-fde340dda9ded520959d7d431757d5654241c60c.zip
cleaner
Diffstat (limited to 'c_ldirs.go')
-rw-r--r--c_ldirs.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index 199927a..601d074 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -72,9 +72,10 @@ func (ldirs *DirsList) add_back(node *DirsNode) {
return
}
curr := ldirs.last
- for curr.next != nil {
- curr = curr.next
- }
+ // for curr.next != nil {
+ // curr = curr.next
+ // }
+ new_node.ID = curr.ID + 1
curr.next = new_node
ldirs.last = curr.next
}