mirror of https://github.com/ArduPilot/ardupilot
Use a more explicit loop termination condition.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1657 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a8d6b839a5
commit
92bfbb1ca4
|
@ -108,7 +108,7 @@ AP_Var_menu_show(uint8_t argc, const Menu::arg *argv)
|
||||||
|
|
||||||
// if no arguments, show all variables
|
// if no arguments, show all variables
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
for (vp = AP_Var::first(); vp; vp = vp->next()) {
|
for (vp = AP_Var::first(); NULL != vp; vp = vp->next()) {
|
||||||
char name_buffer[32];
|
char name_buffer[32];
|
||||||
|
|
||||||
// groups should not be displayed
|
// groups should not be displayed
|
||||||
|
|
Loading…
Reference in New Issue