Fix a compiler warning.

[COMPILER]
* BUG: Fix a compiler warning.
This commit is contained in:
Benoît Minisini 2023-01-13 07:58:34 +01:00
parent 2362a11f66
commit c2ee9733a4

View File

@ -160,10 +160,12 @@ char *TYPE_get_desc(TYPE type)
sprintf(buf, "%.*s", sym->symbol.len, sym->symbol.name);
}
}
else
else if (id < T_OBJECT)
{
strcpy(buf, TYPE_name[id]);
}
else
*buf = 0;
return buf;
}