(decode_type): fail on malloc error

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8443 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-06-21 22:40:23 +00:00
parent ba37ccffe6
commit d43045a867

View File

@@ -65,7 +65,7 @@ decode_type (const char *name, const Type *t)
char *s;
asprintf(&s, "(int*)%s", name);
if(s == NULL)
return ENOMEM;
errx (1, "out of memory");
decode_primitive ("integer", s);
free(s);
}