pfunct: Use zalloc() to make the code more robust

Recently we had a problem where it was assumed that a field was
initialized to zeros but the constructor was using malloc(), check all
use and switch the ones allocating structs to zalloc() to prevent such
problems if we add extra fields to those structs.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed