From 0aca80dbc2dee73fe9c1d800322430804499f0ad Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 1 Nov 2019 13:23:31 -0400 Subject: [PATCH] Corrected problem that can cause magic to crash on a "lef read" command due to an uninitialized variable. --- lef/lefWrite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 282b1bda..8e2106c4 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -121,6 +121,8 @@ lefFileOpen(def, file, suffix, mode, prealfile) else locsuffix = NULL; } + else + locsuffix = suffix; /* Try once as-is, and if this fails, try stripping any leading */ /* path information in case cell is in a read-only directory (mode */