Corrected a case of a missing variable initialization in the case of

reading a bad "bloat-all" statement in a techfile.  This prevents
magic from eventually segfaulting when exercising the recipe in which
the bad statement occurs.
This commit is contained in:
Tim Edwards 2021-11-05 12:15:57 -04:00
parent c0ea133e98
commit ea301b53f8
1 changed files with 1 additions and 0 deletions

View File

@ -1240,6 +1240,7 @@ bloatCheck:
}
}
TechError("Not all bloat layers fall in the same plane.\n");
bloats->bl_plane = 0; /* Prevents magic from segfaulting */
bloatDone: break;
case CIFOP_NET: