fragment: avoid trying to merge fragments where data == NULL

pull/244/head
Ariadne Conill 2022-08-16 18:46:43 +00:00
parent 74faf8d0e2
commit 5500a15133
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ pkgconf_fragment_add(const pkgconf_client_t *client, pkgconf_list_t *list, const
pkgconf_fragment_t *parent = list->tail->data;
/* only attempt to merge 'special' fragments together */
if (!parent->type && pkgconf_fragment_is_unmergeable(parent->data))
if (!parent->type && parent->data != NULL && pkgconf_fragment_is_unmergeable(parent->data))
{
size_t len;
char *newdata;