sysctl: fix error code handling

After  if (r <= 0) r can't  be 0 so
if (k < 0 && r == 0) never happens.
This commit is contained in:
Lukas Nykryn 2012-09-21 12:30:56 +02:00 committed by Lennart Poettering
parent d42c44fb6d
commit 089d4a08d0
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,8 @@ int main(int argc, char *argv[]) {
if (r <= 0)
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
r = 0;
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();