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:
parent
1cec414618
commit
4445663cb1
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue