Browse Source

AP_Scripting: Changed NULL to nullptr

apm_2208
murata 3 years ago committed by Randy Mackay
parent
commit
c65425e3ac
  1. 2
      libraries/AP_Scripting/lua_scripts.cpp

2
libraries/AP_Scripting/lua_scripts.cpp

@ -73,7 +73,7 @@ void lua_scripts::set_and_print_new_error_message(MAV_SEVERITY severity, const c @@ -73,7 +73,7 @@ void lua_scripts::set_and_print_new_error_message(MAV_SEVERITY severity, const c
va_copy(arg_list_copy, arg_list);
// dry run to work out the required length
int len = hal.util->vsnprintf(NULL, 0, fmt, arg_list_copy);
int len = hal.util->vsnprintf(nullptr, 0, fmt, arg_list_copy);
// finished with copy
va_end(arg_list_copy);

Loading…
Cancel
Save