Commit f4d20b15 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] silence "unused value" warning

parent 8562f6f9
......@@ -160,6 +160,9 @@ isc_dir_chdir(const char *dirname) {
isc_result_t
isc_dir_chroot(const char *dirname) {
#ifdef HAVE_CHROOT
void *tmp;
#endif
REQUIRE(dirname != NULL);
......@@ -170,7 +173,9 @@ isc_dir_chroot(const char *dirname) {
* may fail to load library in chroot.
* Do not report errors if it fails, we do not need any result now.
*/
getprotobyname("udp") && getservbyname("domain", "udp");
tmp = getprotobyname("udp");
if (tmp != NULL)
(void) getservbyname("domain", "udp");
if (chroot(dirname) < 0 || chdir("/") < 0)
return (isc__errno2result(errno));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment