summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bind/bin/dig/dig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c
index 73c14fb91ab..423eadbefd4 100644
--- a/usr.sbin/bind/bin/dig/dig.c
+++ b/usr.sbin/bind/bin/dig/dig.c
@@ -1390,7 +1390,7 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
int n;
n = snprintf(rcfile, sizeof(rcfile), "%s/.digrc",
homedir);
- if (n < sizeof(rcfile) && n != 0)
+ if ((size_t)n < sizeof(rcfile) && n != -1)
batchfp = fopen(rcfile, "r");
}
if (batchfp != NULL) {