libpkgconf: client: set the error handler to default error handler if NULL was provided for the error handler

pull/109/head
William Pitcock 2016-12-15 22:33:22 -06:00
parent 568e5bfd1b
commit 21a6d6cd59
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ pkgconf_client_init(pkgconf_client_t *client, pkgconf_error_handler_func_t error
pkgconf_client_set_sysroot_dir(client, NULL); pkgconf_client_set_sysroot_dir(client, NULL);
pkgconf_client_set_buildroot_dir(client, NULL); pkgconf_client_set_buildroot_dir(client, NULL);
if (client->error_handler == NULL)
client->error_handler = pkgconf_default_error_handler;
} }
/* /*