From d56270153898d1796151fdf2f26df0a45a81290d Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 11 Mar 2010 22:00:41 +0000 Subject: [PATCH] * libmisc/copydir.c: Added parenthesis. --- ChangeLog | 4 ++++ libmisc/copydir.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cdc10f78..b5d8ec52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-10 Nicolas François + + * libmisc/copydir.c: Added parenthesis. + 2010-02-14 Michael Bunk * NEWS, lib/gshadow.c: Fix parsing of gshadow entries. diff --git a/libmisc/copydir.c b/libmisc/copydir.c index 3a67e75d..3c824a39 100644 --- a/libmisc/copydir.c +++ b/libmisc/copydir.c @@ -740,7 +740,7 @@ int remove_tree (const char *root, bool remove_root) } (void) closedir (dir); - if (remove_root && 0 == err) { + if (remove_root && (0 == err)) { if (rmdir (root) != 0) { err = -1; }