]> git.ipfire.org Git - thirdparty/pdns.git/commit
resolver.cc: fix warnings found by clang-703.0.31 on OS X 4083/head
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 1 Jul 2016 09:35:18 +0000 (11:35 +0200)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 1 Jul 2016 09:35:20 +0000 (11:35 +0200)
commit2056e985a90d4d344db7837bdda0bb9af8127861
treec0337ab5436e6f8bc5cc2b33e009a346267e06e7
parent0d38db91c24718553ec4f61502f9f49e48189fce
resolver.cc: fix warnings found by clang-703.0.31 on OS X

Move try/catch inside the function, as otherwise clang complains:
  cannot refer to a non-static member from the handler of a
  constructor function try block

This also cleans up the initialization of locals[]. Without this,
the code might have ended up closing stdout or another unrelated
socket.
pdns/resolver.cc