Copy N + EVR into ds in rpmdsSingle() instead of just referring
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 31 Mar 2008 06:25:18 +0000 (09:25 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 31 Mar 2008 06:25:18 +0000 (09:25 +0300)
commit58afc25abb0ebb7826c00b688fb1825d5b0087c0
tree1006a843dd4920c6ecd286a648e287c5ed304032
parented07bf20d3bffaa4d99b4b6db2460b1046d7ead3
Copy N + EVR into ds in rpmdsSingle() instead of just referring
- previously a ds created by rpmdsSingle() would turn invalid as soon as
  the N and EVR strings were freed by caller (or went out of scope), ick
- convert the N + EVR strings passed to rpmdsSingle() to similar construct
  as is returned by headerGetEntry so headerFreeData will free both the
  pointers + contents.
lib/rpmds.c