[Devel] [PATCH 1/3] hooks_ct: fix gcc warning

Glauber Costa glommer at openvz.org
Mon Apr 29 20:46:19 PDT 2013


Signed-off-by: Glauber Costa <glommer at openvz.org>
---
 src/lib/hooks_ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/hooks_ct.c b/src/lib/hooks_ct.c
index 03a18e7..63af536 100644
--- a/src/lib/hooks_ct.c
+++ b/src/lib/hooks_ct.c
@@ -247,7 +247,7 @@ static int ct_enter(vps_handler *h, envid_t veid, const char *root, int flags)
 	if (dp == NULL)
 		return VZ_RESOURCE_ERROR;
 
-	if (err = container_add_task(veid)) {
+	if ((err = container_add_task(veid))) {
 		logger(-1, 0, "Can't add task creator to container: %s", container_error(err));
 		goto out;
 	}
-- 
1.7.11.7




More information about the Devel mailing list