fix potential garbagge return value
fix potential garbagge return value

found by clang static analyzer

janmejay/liblognorm,janmejay/liblognorm,aturetta/liblognorm,aturetta/liblognorm,radu-gheorghe/liblognorm,aturetta/liblognorm,radu-gheorghe/liblognorm