diff --git a/src/modules/events/send_event.cpp b/src/modules/events/send_event.cpp index 1c408881f8..638d395ac9 100644 --- a/src/modules/events/send_event.cpp +++ b/src/modules/events/send_event.cpp @@ -245,7 +245,7 @@ int send_event_main(int argc, char *argv[]) bool calib_all = true; int myoptind = 1; int ch; - const char *myoptarg = NULL; + const char *myoptarg = nullptr; while ((ch = px4_getopt(argc, argv, "abg", &myoptind, &myoptarg)) != EOF) { switch (ch) {