Unverified Commit 2f4fd3bb by 2xsec Committed by Christian Brauner

coverity: #1425816

Explicit null dereferenced Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 61ca0be6
...@@ -175,6 +175,9 @@ int main(int argc, char *argv[]) { ...@@ -175,6 +175,9 @@ int main(int argc, char *argv[]) {
case 'm': { case 'm': {
char *mode_tok, *tok, *saveptr = NULL; char *mode_tok, *tok, *saveptr = NULL;
if (!optarg)
continue;
modes = NULL; modes = NULL;
for (i = 0, mode_tok = optarg; for (i = 0, mode_tok = optarg;
(tok = strtok_r(mode_tok, ",", &saveptr)); (tok = strtok_r(mode_tok, ",", &saveptr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment