Skip to content

Commit

Permalink
core: log an error in mk_name_lst_elem if memory allocation failed
Browse files Browse the repository at this point in the history
  • Loading branch information
henningw committed Dec 23, 2018
1 parent de195e0 commit 5667377
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.c
Expand Up @@ -978,8 +978,11 @@ static struct name_lst* mk_name_lst_elem(char* name, int name_len, int flags)
l->name[name_len]=0;
l->flags=flags;
l->next=0;
return l;
} else {
PKG_MEM_ERROR;
return 0;
}
return l;
}


Expand Down

0 comments on commit 5667377

Please sign in to comment.