]> git.ipfire.org Git - pakfire.git/commit
callbacks: Only copy when data is set
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Dec 2021 12:00:02 +0000 (12:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Dec 2021 12:00:02 +0000 (12:00 +0000)
commitdfb0afdfec550b550ee63ae6decefbe2f7341059
tree404edd0a625aa5666f76f83fbc0d4265719ca864
parent45cbf6f4f7e37f31565414d1e46b33a369b496f1
callbacks: Only copy when data is set

When callbacks was a struct but some pointers where NULL it could happen
that we attempt to call that NULL pointer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c