Several fixes to dumper. CID:107,108,206
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 17 Sep 2011 03:33:22 +0000 (23:33 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sat, 17 Sep 2011 03:33:22 +0000 (23:33 -0400)
commit3988b6f0e4031a4c5c6effde754bdbfe7c704531
tree2252c83f1184b50fab93af69cc5064c343345a92
parent20c4651c3873847e98079777df8d81cc369135e1
Several fixes to dumper. CID:107,108,206
NEGATIVE_RETURNS, REVERSE_INULL

* src/dumper.c: Make pdump_length an off_t to fix CID:108
* src/dumper.c (pdump_register_sub): move strlen inside the if to only do it when str!=NULL CID:206
* src/dumper.c (pdump): Make sure the fds are >=0 and abort otherwise due to the early nature of the call.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/dumper.c