Skip to content

Commit

Permalink
Modified a routine to return a valid string when attempting to
Browse files Browse the repository at this point in the history
generate a name for an instance that is set to NULL.  It is not
clear to me by an instance would have a NULL name, but apparently
it can happen, and should not crash magic.
  • Loading branch information
RTimothyEdwards committed Jan 12, 2025
1 parent 1cec414 commit 4445663
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3.513
8.3.514
6 changes: 6 additions & 0 deletions database/DBcellname.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ dbGetUseName(celluse)
ybuf[0] = '\0';

useID = celluse->cu_id;
if (useID == NULL)
{
newID = (char *)mallocMagic(7);
sprintf(newID, "(null)");
return (newID);
}
newsize = strlen(useID) + 1;
if (isx || isy)
{
Expand Down

0 comments on commit 4445663

Please # to comment.