From 26d6af464a8aa9d38d52e12cd6e4a1015ee336da Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 20:21:29 +0100 Subject: [PATCH] grDStyle.c: newres, Branch condition evaluates to a garbage value 'newres' initialization is performed the wrong side of the label to be effective to the code that uses it. SonarCloud Branch condition evaluates to a garbage value https://sonarcloud.io/project/issues?open=AZJB16zUNGfDNup0RiqG&id=dlmiles_magic --- graphics/grDStyle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/grDStyle.c b/graphics/grDStyle.c index aa9275ce..4b5a5d4b 100644 --- a/graphics/grDStyle.c +++ b/graphics/grDStyle.c @@ -542,9 +542,9 @@ char *libPath; } else { - int newres = TRUE; - + int newres; recovery: + newres = TRUE; switch (section) { case LAYOUT_STYLES: