aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-03 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-03 20:20:20 +0100
commit7e595f4ba400b32ece930de0847d994f6f2fbe24 (patch)
tree39ffae8e4930f687cc6ed48c9b5860624df985f7 /c_ldirs.go
parentwip (diff)
downloadhardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.gz
hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.bz2
hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.xz
hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.zst
hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.zip
unique id maybe?
Diffstat (limited to 'c_ldirs.go')
-rw-r--r--c_ldirs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index 185d2a0..b647944 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -70,6 +70,7 @@ type DirsList struct {
func (ldirs *DirsList) add_back(node *DirsNode) {
new_node := node
+ new_node.ID = global_id
if ldirs.head == nil {
ldirs.head = new_node
ldirs.last = ldirs.head
@@ -79,7 +80,6 @@ func (ldirs *DirsList) add_back(node *DirsNode) {
// for curr.next != nil {
// curr = curr.next
// }
- new_node.ID = curr.ID + 1
curr.next = new_node
ldirs.last = curr.next
}