diff options
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r-- | build/parseSpec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c index 24b0cbf78..3c5349d1e 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -570,9 +570,8 @@ int parseSpec(rpmts ts, const char *specFile, const char *rootDir, for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) { if (!headerIsEntry(pkg->header, RPMTAG_DESCRIPTION)) { - const char * name; - (void) headerNVR(pkg->header, &name, NULL, NULL); - rpmlog(RPMLOG_ERR, _("Package has no %%description: %s\n"), name); + rpmlog(RPMLOG_ERR, _("Package has no %%description: %s\n"), + headerGetString(pkg->header, RPMTAG_NAME)); goto errxit; } |