fix: Accessing uninitialized variable

Trigger condition maybe that no labels exist in the project, so the
loop never iterates.
This commit is contained in:
Darryl L. Miles 2024-06-04 15:01:33 +01:00 committed by Tim Edwards
parent 8e0f34c6f1
commit 1ca23ca0a2
1 changed files with 1 additions and 1 deletions

View File

@ -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. */