pkg: do not print cflags or libs if they are NULL

feature/tap-sh
William Pitcock 2011-07-24 23:43:00 -05:00
parent b44ce20d29
commit 37d87b9006
1 changed files with 4 additions and 2 deletions

2
pkg.c
View File

@ -60,12 +60,14 @@ pkg_traverse(pkg_t *root,
void
print_cflags(pkg_t *pkg, void *unused)
{
if (pkg->cflags != NULL)
printf("%s ", pkg->cflags);
}
void
print_libs(pkg_t *pkg, void *unused)
{
if (pkg->libs != NULL)
printf("%s ", pkg->libs);
}