]> sigrok.org Git - sigrok-cli.git/commitdiff
parsers: avoid NULL dereference when option strings are empty
authorGerhard Sittig <redacted>
Tue, 30 Aug 2022 22:40:37 +0000 (00:40 +0200)
committerGerhard Sittig <redacted>
Tue, 30 Aug 2022 23:16:19 +0000 (01:16 +0200)
When colon separated options are scanned (like "-P ps2: --show") then
the empty list item which results from the trailing colon resulted in
key/value pairs becoming NULL. Handle that situation, skip empty list
elements.

Reported-By: Peter Mortensen via IRC

No differences found