diff options
author | Joe <rbo@gmx.us> | 2024-01-03 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-03 20:20:20 +0100 |
commit | 7e595f4ba400b32ece930de0847d994f6f2fbe24 (patch) | |
tree | 39ffae8e4930f687cc6ed48c9b5860624df985f7 /c_ldirs.go | |
parent | wip (diff) | |
download | hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.gz hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.bz2 hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.xz hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.zst hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.zip |
unique id maybe?
Diffstat (limited to '')
-rw-r--r-- | c_ldirs.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |