fix segmentation fault with pkg check -r
fix segmentation fault with pkg check -r

khorben/pkg,Open343/pkg,junovitch/pkg,skoef/pkg,junovitch/pkg,khorben/pkg,khorben/pkg,en90/pkg,skoef/pkg,Open343/pkg,en90/pkg