From edc5d15db4037b981021f5fac92774b291b800a6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 2 Sep 2009 12:43:24 +0300 Subject: Take advantage of new header string getters --- build/parsePreamble.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'build') diff --git a/build/parsePreamble.c b/build/parsePreamble.c index a1b28b4f9..82744fd60 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -428,12 +428,8 @@ spectag stashSt(rpmSpec spec, Header h, rpmTag tag, const char * lang) t->t_lang = xstrdup(lang); t->t_msgid = NULL; if (!(t->t_lang && !rstreq(t->t_lang, RPMBUILD_DEFAULT_LANG))) { - struct rpmtd_s td; - if (headerGet(h, RPMTAG_NAME, &td, HEADERGET_MINMEM)) { - rasprintf(&t->t_msgid, "%s(%s)", - rpmtdGetString(&td), rpmTagGetName(tag)); - rpmtdFreeData(&td); - } + rasprintf(&t->t_msgid, "%s(%s)", + headerGetString(h, RPMTAG_NAME), rpmTagGetName(tag)); } } return t; -- cgit v1.2.3