diff --git a/sysctl.c b/sysctl.c index 2371ca9a..2172759c 100644 --- a/sysctl.c +++ b/sysctl.c @@ -465,7 +465,7 @@ static int WriteSetting(const char *setting) rc = 0; if (close_stream(fp) != 0) xwarn(_("setting key \"%s\""), outname); - if (rc == 0 && !Quiet) { + else if (rc == 0 && !Quiet) { if (NameOnly) { fprintf(stdout, "%s\n", outname); } else {