This commit is contained in:
Joey Hess 2012-04-18 13:23:33 -04:00
parent d75771b0ab
commit 37061c019d
2 changed files with 4 additions and 4 deletions

View file

@ -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;