Skip to content

Commit

Permalink
Merge pull request #2441 from 2xsec/coverity
Browse files Browse the repository at this point in the history
coverity: #1425816
  • Loading branch information
brauner committed Jul 2, 2018
2 parents 7e52f25 + f766a9d commit c5c4d6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/concurrent.c
Expand Up @@ -175,6 +175,9 @@ int main(int argc, char *argv[]) {
case 'm': {
char *mode_tok, *tok, *saveptr = NULL;

if (!optarg)
continue;

modes = NULL;
for (i = 0, mode_tok = optarg;
(tok = strtok_r(mode_tok, ",", &saveptr));
Expand Down

0 comments on commit c5c4d6a

Please sign in to comment.