Print this page
12257 resync smatch to 0.6.1-rc1-il-4
*** 787,797 ****
static int type_str_helper(char *buf, int size, struct symbol *type)
{
int n;
if (!type)
! return snprintf(buf, size, "<unknown>");
if (type->type == SYM_BASETYPE) {
return snprintf(buf, size, "%s", base_type_str(type));
} else if (type->type == SYM_PTR) {
type = get_real_base_type(type);
--- 787,797 ----
static int type_str_helper(char *buf, int size, struct symbol *type)
{
int n;
if (!type)
! return snprintf(buf, size, "<null type>");
if (type->type == SYM_BASETYPE) {
return snprintf(buf, size, "%s", base_type_str(type));
} else if (type->type == SYM_PTR) {
type = get_real_base_type(type);