X Tutup
Skip to content

Commit 2de3023

Browse files
committed
sysctl: reset 'r' only where needed
1 parent 8a65188 commit 2de3023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sysctl/sysctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ static int run(int argc, char *argv[]) {
279279
if (!sysctl_options)
280280
return log_oom();
281281

282-
r = 0;
283-
284282
if (argc > optind) {
285283
int i;
286284

285+
r = 0;
286+
287287
for (i = optind; i < argc; i++) {
288288
k = parse_file(sysctl_options, argv[i], false);
289289
if (k < 0 && r == 0)

0 commit comments

Comments
 (0)
X Tutup