From 92bfbb1ca48debb92fe4141174bbc22bb6925653 Mon Sep 17 00:00:00 2001 From: "DrZiplok@gmail.com" Date: Mon, 14 Feb 2011 17:49:02 +0000 Subject: [PATCH] Use a more explicit loop termination condition. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1657 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/AP_Var_menufuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/AP_Var_menufuncs.cpp b/libraries/AP_Common/AP_Var_menufuncs.cpp index 61d2706cad..0eb3563141 100644 --- a/libraries/AP_Common/AP_Var_menufuncs.cpp +++ b/libraries/AP_Common/AP_Var_menufuncs.cpp @@ -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