check return value of alloc functions, from Charles Longeau
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -87,6 +87,8 @@ static int
|
||||
add_column(struct get_entry_data *data, struct field_name *ff, const char *header)
|
||||
{
|
||||
struct field_info *f = malloc(sizeof(*f));
|
||||
if (f == NULL)
|
||||
return ENOMEM;
|
||||
f->ff = ff;
|
||||
if(header)
|
||||
f->header = strdup(header);
|
||||
|
Reference in New Issue
Block a user