]> www.infradead.org Git - nvme.git/commit
lockdown: initialize local array before use to quiet static analysis
authorTanya Agarwal <tanyaagarwal25699@gmail.com>
Sun, 5 Jan 2025 07:05:38 +0000 (12:35 +0530)
committerPaul Moore <paul@paul-moore.com>
Sun, 5 Jan 2025 17:48:43 +0000 (12:48 -0500)
commit714d87c90a766e6917f7d69f618b864d350f09d3
tree9d994ec8391cdd3ba38ef559d5f1b54a2f3b1ceb
parentf09ff307c7299392f1c88f763299e24bc99811c7
lockdown: initialize local array before use to quiet static analysis

The static code analysis tool "Coverity Scan" pointed the following
details out for further development considerations:

  CID 1486102: Uninitialized scalar variable (UNINIT)
  uninit_use_in_call: Using uninitialized value *temp when calling
                      strlen.

Signed-off-by: Tanya Agarwal <tanyaagarwal25699@gmail.com>
[PM: edit/reformat the description, subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/lockdown/lockdown.c