Fixed an error in which using the command option "gds allow undefined"

will cause a segmentation fault.
This commit is contained in:
Tim Edwards 2025-02-15 13:43:01 -05:00
parent df84a36659
commit 41d77558b7
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
8.3.519 8.3.520

View File

@ -312,6 +312,9 @@ dbReadAreaFunc(scx, err_ptr)
*/ */
CellDef **err_ptr; /* If non-NULL, failure to find a cell causes a halt CellDef **err_ptr; /* If non-NULL, failure to find a cell causes a halt
* and the CellDef in error is returned in err_def. * and the CellDef in error is returned in err_def.
* If NULL, failure to find a cell still causes a
* halt but no information is passed back to the
* calling routine.
*/ */
{ {
CellDef *def = scx->scx_use->cu_def; CellDef *def = scx->scx_use->cu_def;
@ -320,7 +323,7 @@ dbReadAreaFunc(scx, err_ptr)
{ {
if (DBCellRead(def, TRUE, TRUE, NULL) == FALSE) if (DBCellRead(def, TRUE, TRUE, NULL) == FALSE)
{ {
*err_ptr = def; if (err_ptr != NULL) *err_ptr = def;
return 1; return 1;
} }