forked from ariadne/pkgconf
pkg: do not print cflags or libs if they are NULL
parent
b44ce20d29
commit
37d87b9006
2
pkg.c
2
pkg.c
|
@ -60,12 +60,14 @@ pkg_traverse(pkg_t *root,
|
||||||
void
|
void
|
||||||
print_cflags(pkg_t *pkg, void *unused)
|
print_cflags(pkg_t *pkg, void *unused)
|
||||||
{
|
{
|
||||||
|
if (pkg->cflags != NULL)
|
||||||
printf("%s ", pkg->cflags);
|
printf("%s ", pkg->cflags);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
print_libs(pkg_t *pkg, void *unused)
|
print_libs(pkg_t *pkg, void *unused)
|
||||||
{
|
{
|
||||||
|
if (pkg->libs != NULL)
|
||||||
printf("%s ", pkg->libs);
|
printf("%s ", pkg->libs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue