Corrected problem that can cause magic to crash on a "lef read"

command due to an uninitialized variable.
This commit is contained in:
Tim Edwards 2019-11-01 13:23:31 -04:00
parent 8e85c3a96e
commit 0aca80dbc2
1 changed files with 2 additions and 0 deletions

View File

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