diff options
author | tuexen <tuexen@FreeBSD.org> | 2015-09-10 10:23:23 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2015-09-10 10:23:23 +0000 |
commit | 9701f78cf861e384fc384747619879acb0767a1c (patch) | |
tree | d620b559988744e855e972739a10e27e91e719af /contrib/libc++/src/stdexcept.cpp | |
parent | c134e00127d82c04c3ed8492ed953952391bb8d6 (diff) | |
download | FreeBSD-src-9701f78cf861e384fc384747619879acb0767a1c.zip FreeBSD-src-9701f78cf861e384fc384747619879acb0767a1c.tar.gz |
Zero out a local variable also when PURIFY is not defined.
This silence a warning brought up by valgrind whenever if_nametoindex
is used. This was already discussed in PR 166483, but the code
committed in r234329 guards the initilization with #ifdef PURIFY.
Therefore, valgrind still complains. Since this code is not performance
critical, always zero out the local variable to silence valgrind.
PR: 166483
Discussed with: eadler@
MFC after: 4 weeks
Diffstat (limited to 'contrib/libc++/src/stdexcept.cpp')
0 files changed, 0 insertions, 0 deletions