mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected an error in defGetType() that incorrectly looks at a
lefLayer's "via" record even when the layer might not be a via, causing potential issues with uninitialized variables. Not sure if this is related to the bug that started this investigation, but it was the only thing that looked relevant.
This commit is contained in:
+1
-1
@@ -2040,7 +2040,7 @@ defGetType(ttype, lefptr, do_vias)
|
||||
{
|
||||
lefl = (lefLayer *)HashGetValue(he);
|
||||
if (lefl && (do_vias == FALSE) && (contact == CLASS_VIA) &&
|
||||
(lefl->info.via.lr != NULL))
|
||||
(lefl->lefClass == CLASS_VIA))
|
||||
continue; /* Skip VIA definitions if do_vias is FALSE */
|
||||
|
||||
if (lefl && ((contact == lefl->lefClass) ||
|
||||
|
||||
Reference in New Issue
Block a user