Fix a compiler warning.
[COMPILER] * BUG: Fix a compiler warning.
This commit is contained in:
parent
2362a11f66
commit
c2ee9733a4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user