projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a11aa6
)
Remove unused datafree handling from formatValue()
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 19 May 2008 05:38:53 +0000
(08:38 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 21 May 2008 09:04:50 +0000
(12:04 +0300)
- the data is always cached and cleared elsewhere..
lib/headerfmt.c
patch
|
blob
|
history
diff --git
a/lib/headerfmt.c
b/lib/headerfmt.c
index
e6bba1b
..
98fdab1
100644
(file)
--- a/
lib/headerfmt.c
+++ b/
lib/headerfmt.c
@@
-662,7
+662,6
@@
static char * formatValue(headerSprintfArgs hsa, sprintfTag tag, int element)
rpm_data_t data;
unsigned int intVal;
const char ** strarray;
- int datafree = 0;
int countBuf;
memset(buf, 0, sizeof(buf));
@@
-766,9
+765,6
@@
static char * formatValue(headerSprintfArgs hsa, sprintfTag tag, int element)
break;
}
- if (datafree)
- data = headerFreeData(data, type);
-
if (val && need > 0) {
t = hsaReserve(hsa, need);
te = stpcpy(t, val);