Skip to content

Commit

Permalink
wqueue: check before dereferencing
Browse files Browse the repository at this point in the history
This was found by coverity.
  • Loading branch information
julianoes authored and dagar committed May 29, 2019
1 parent 29915cb commit b135503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/common/px4_work_queue/test/wqueue_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int wqueue_test_main(int argc, char *argv[])
SCHED_PRIORITY_MAX - 5,
2000,
PX4_MAIN,
(argv) ? (char *const *)&argv[2] : (char *const *)nullptr);
(argv[2]) ? (char *const *)&argv[2] : (char *const *)nullptr);

return 0;
}
Expand Down

0 comments on commit b135503

Please sign in to comment.