pmlogextract: minor code refactor to avoid coverity warning
pmlogextract: minor code refactor to avoid coverity warning

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp