core: bug fix in PV printing related to static buffer

fix a bug in the PV printing (for k). The code allocated a static buffer, but
failed to proper initialize it with zero. Thus in certain cases old data from
previous PV evaluation is returned.
is returned