Change fpLookup() to return malloced memory (on first call)
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 05:41:01 +0000 (08:41 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 10:40:24 +0000 (13:40 +0300)
commit9e7adb8f14303edf0262744cea7a7f0a650f8ca2
tree94f45bfecb133092d1a2488ffb98e8bb30b7e8fb
parentab180dacb9badaef882a098639eb50196cff8f57
Change fpLookup() to return malloced memory (on first call)

- If the fingerprint pointer passed to it is NULL then allocate space
  for a new fingerprint, otherwise reuse the previous space. This should
  allow optimizing the case where repeatedly calling and directory
  doesn't change inside fpc so callers dont need special-case code
  for this. For now, we dont care about optimizations, other than
  making it possible later.
lib/fprint.c
lib/fprint.h
lib/rpmdb.c
lib/transaction.c