Skip to content
Snippets Groups Projects
Commit fff53585 authored by Nicolae Rosia's avatar Nicolae Rosia Committed by Lorenz Meier
Browse files

drivers/gps: fix segfault when parsing arguments


running gps command without parameters results in segfault
due to illegal access to unallocated memory

Signed-off-by: default avatarNicolae Rosia <nicolae.rosia@gmail.com>
parent df3dce33
No related branches found
No related tags found
No related merge requests found
......@@ -631,6 +631,10 @@ gps_main(int argc, char *argv[])
bool fake_gps = false;
bool enable_sat_info = false;
if (argc < 2) {
goto out;
}
/*
* Start/load the driver.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment