From 12740642c25c49d04f88502058c7c73c7e0de166 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 26 Feb 2013 19:51:03 +0100 Subject: [PATCH] CephBroker.cc: fix condition from cppcheck: Fix Suspicious condition (assignment + comparison); Clarify expression with parentheses. Signed-off-by: Danny Al-Gaaf --- src/client/hypertable/CephBroker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/hypertable/CephBroker.cc b/src/client/hypertable/CephBroker.cc index 96fd4830ec21..a6cf6da1daac 100644 --- a/src/client/hypertable/CephBroker.cc +++ b/src/client/hypertable/CephBroker.cc @@ -386,7 +386,7 @@ int CephBroker::rmdir_recursive(const char *directory) { struct dirent de; struct stat st; int r; - if ((r = ceph_opendir(cmount, directory, &dirp) < 0)) + if ((r = ceph_opendir(cmount, directory, &dirp)) < 0) return r; //failed to open while ((r = ceph_readdirplus_r(cmount, dirp, &de, &st, 0)) > 0) { String new_dir = de.d_name; -- 2.47.3