-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Description of the false positive
https://github.com/ryao/zfs/security/code-scanning/694
CodeQL complains that done
is potentially uninitialized. However, done
is set when rc != -1
, so it is only uninitialized when rc == -1
. Then the function terminates when rc < 0
before reaching the line where done
is used. There is no path that can reach that line that leaves done
uninitialized. Therefore, this is a false positive.