From 1ca23ca0a21d994f264325e508a18625f5f636bd Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Tue, 4 Jun 2024 15:01:33 +0100 Subject: [PATCH] fix: Accessing uninitialized variable Trigger condition maybe that no labels exist in the project, so the loop never iterates. --- calma/CalmaWrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calma/CalmaWrite.c b/calma/CalmaWrite.c index a9bb6fe2..44ea65a2 100644 --- a/calma/CalmaWrite.c +++ b/calma/CalmaWrite.c @@ -1440,7 +1440,7 @@ calmaOutFunc(def, f, cliprect) numports++; } } - if (newll != NULL) + if (ll != NULL) { /* Turn linked list into an array, then run qsort on it */ /* to sort by port number. */