sysctl: fix error code handling
authorLukas Nykryn <lnykryn@redhat.com>
Fri, 21 Sep 2012 10:30:56 +0000 (12:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 14:12:47 +0000 (16:12 +0200)
commit089d4a08d0cda5bae0bf9bb3273bfdb397200ee8
tree230a9c3d1af59ba194604f691e4fc3c5089742dc
parentd42c44fb6dd926271bfd56157114ba9d29935ea7
sysctl: fix error code handling

After  if (r <= 0) r can't  be 0 so
if (k < 0 && r == 0) never happens.
src/sysctl/sysctl.c