Clean up fix grabData() error handling in callers
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2012 11:22:12 +0000 (13:22 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 19 Dec 2012 10:47:02 +0000 (12:47 +0200)
commit90e18d0edb587d26777983fb68168857631e559b
treea69bc7c6d5a7330fa5f71d1ffa9227f6e8ba08a1
parent4365113d537f10ba5229264c9a8cab5d38dcd633
Clean up fix grabData() error handling in callers

- grabData() only returns non-NULL on data length > 0, separately
  checking for length only makes it look like a possible case when
  its not. If it were, it'd be a memory leak.
(cherry picked from commit aa6af71d457be5d78252f23ea68322dcaf199e4e)
lib/header.c