Modified a routine to return a valid string when attempting to

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.
This commit is contained in:
Tim Edwards 2025-01-12 17:36:05 -05:00
parent 1cec414618
commit 4445663cb1
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
8.3.513
8.3.514

View File

@ -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)
{