avoid warnings in resolv()

small fix to avoid the warnings reported in http://forge.fusioninventory.org/issues/2193