]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/btrfs: avoid NULL-dereference
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 26 Jan 2023 20:03:56 +0000 (21:03 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 29 Oct 2023 23:00:15 +0000 (00:00 +0100)
commitb5c99ec30eb5fbe46ed3f4d7bf03415132850a30
tree67b39c5ed758a2838d10e15a944072e167c3ecae
parent58b96645c93395c7a109aa6e43cb5fff2c5b4647
lib/btrfs: avoid NULL-dereference

    btrfs.c:42:13: warning: use of NULL 'cmd' where non-null expected [CWE-476] [-Wanalyzer-null-argument]

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: 54ab542887994f8b6e5411469d6867e3a2e58800
Link: <https://github.com/shadow-maint/shadow/pull/770>
Reviewed-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/btrfs.c