The Pakfire instance might not be populated
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// XXX set defaults
// Find all macros
- char* macros = pakfire_make_path(pakfire, PAKFIRE_MACROS_GLOB_PATTERN);
- if (!macros)
- goto ERROR;
- DEBUG(pakfire, "Searching for macros in %s\n", macros);
+ DEBUG(pakfire, "Searching for macros in %s\n", PAKFIRE_MACROS_GLOB_PATTERN);
glob_t globmacros;
- r = glob(macros, 0, NULL, &globmacros);
- free(macros);
+ r = glob(PAKFIRE_MACROS_GLOB_PATTERN, 0, NULL, &globmacros);
// Handle any errors
switch (r) {