This is an automated email from Gerrit. Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5379
-- gerrit commit 1fd85d9d8001e51172ab186154ed0e7cfb25e654 Author: Tomas Vanek <[email protected]> Date: Fri Dec 20 23:48:13 2019 +0100 target/target: fix clang static analyzer warnings Change-Id: I23e6586be60915f21a7179a994a1ec93fb9b2c36 Signed-off-by: Tomas Vanek <[email protected]> diff --git a/src/target/target.c b/src/target/target.c index 03b6f4e..8455827 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1680,7 +1680,7 @@ static int target_call_timer_callbacks_check_time(int checktime) * next item; initially, that's a standalone "root of the * list" variable. */ struct target_timer_callback **callback = &target_timer_callbacks; - while (*callback) { + while (callback && *callback) { if ((*callback)->removed) { struct target_timer_callback *p = *callback; *callback = (*callback)->next; -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
