(length_type): fail on malloc error

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

View File

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