diff options
author | Joey Hess <joey@kitenet.net> | 2012-04-18 13:23:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-04-18 13:23:46 -0400 |
commit | 37061c019d816ff9ddd30cf23833539102741844 (patch) | |
tree | a14cc0f139fa42d2d1f15d5fd04c10bf5cbfafed /Utility/libdiskfree.c | |
parent | d75771b0ab88ebec9b573fb1b3ef257e3b19c3ef (diff) |
tweak
Diffstat (limited to 'Utility/libdiskfree.c')
-rw-r--r-- | Utility/libdiskfree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Utility/libdiskfree.c b/Utility/libdiskfree.c index 54e8c0894..a37cb7571 100644 --- a/Utility/libdiskfree.c +++ b/Utility/libdiskfree.c @@ -58,10 +58,10 @@ unsigned long long int diskfree(const char *path) { unsigned long long int available, blocksize; struct STATSTRUCT buf; - if (STATCALL(path, &buf) != 0) { + if (STATCALL(path, &buf) != 0) return 0; /* errno is set */ - } - errno = 0; + else + errno = 0; available = buf.f_bavail; blocksize = buf.f_bsize; |