diff options
author | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-15 20:20:20 +0100 |
commit | bc7effa71d5d7329af950aca3143bc01b84201c3 (patch) | |
tree | 767c71d05a750394aa6ae50bb9d413f6c3e9b7ec /c_ldirs.go | |
parent | ok (diff) | |
download | hardflip-bc7effa71d5d7329af950aca3143bc01b84201c3.tar.gz hardflip-bc7effa71d5d7329af950aca3143bc01b84201c3.tar.bz2 hardflip-bc7effa71d5d7329af950aca3143bc01b84201c3.tar.xz hardflip-bc7effa71d5d7329af950aca3143bc01b84201c3.tar.zst hardflip-bc7effa71d5d7329af950aca3143bc01b84201c3.zip |
i think its good? pls
Diffstat (limited to '')
-rw-r--r-- | c_ldirs.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -155,6 +155,9 @@ func (dir *DirsNode) count_hosts() int { } func (ldirs *DirsList) prev(dir *DirsNode) *DirsNode { + if ldirs.head == dir { + return dir + } for ptr := ldirs.head; ptr != nil; ptr = ptr.next { if ptr.next == dir { return ptr |