From 3fe9d94879e6b8fdd5cc4ff123a1c87e6a9540a7 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 21:03:42 +0100 Subject: [PATCH] dtwm: Coverity 88375 --- cde/programs/dtwm/WmHelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtwm/WmHelp.c b/cde/programs/dtwm/WmHelp.c index f84defb8..198c55b0 100644 --- a/cde/programs/dtwm/WmHelp.c +++ b/cde/programs/dtwm/WmHelp.c @@ -640,7 +640,7 @@ static void WmDtCloseHelpCB ( pTemp = pSD->cachedHelp; /* Search our Cache List for the closed help dialog */ - while ((pTemp->helpDialog != helpDialog) && (pTemp != NULL)) + while (pTemp && (pTemp->helpDialog != helpDialog)) { pTemp = pTemp->pNext; } -- 2.25.1