summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-22 14:25:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-22 14:25:46 +0100
commit23ea3dcb48ea4ad8d07a3558742aef08faff0c94 (patch)
tree2595111e218843f57a10254b7b0bc8e7e827e47d /tools.c
parenta4b8729e6af299a3f2eb4fa676e93cfd85778521 (diff)
downloadvdr-23ea3dcb48ea4ad8d07a3558742aef08faff0c94.tar.gz
vdr-23ea3dcb48ea4ad8d07a3558742aef08faff0c94.tar.bz2
No longer logging an error message in DirSizeMB() if the given directory doesn't exist
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index a2055ec8..332fce42 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 3.2 2013/09/22 13:19:19 kls Exp $
+ * $Id: tools.c 3.3 2014/03/22 14:22:55 kls Exp $
*/
#include "tools.h"
@@ -609,7 +609,7 @@ int DirSizeMB(const char *DirName)
}
return size;
}
- else
+ else if (errno != ENOENT)
LOG_ERROR_STR(DirName);
return -1;
}