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:
DrZiplok@gmail.com 2011-02-14 17:49:02 +00:00
parent a8d6b839a5
commit 92bfbb1ca4
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ AP_Var_menu_show(uint8_t argc, const Menu::arg *argv)
// if no arguments, show all variables
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];
// groups should not be displayed