From dce077bd995993e59559c04c18a45401bce94e5c Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 2 Mar 2010 11:57:34 +0000 Subject: Core: add do/while(0) around block of goto_cleanup_with_rc --- lasso/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lasso/utils.h b/lasso/utils.h index 8a18d4da..4143e3cb 100644 --- a/lasso/utils.h +++ b/lasso/utils.h @@ -460,10 +460,10 @@ lasso_is_empty_string(const char *str) { * */ #define goto_cleanup_with_rc(rc_value) \ - {\ + do {\ rc = (rc_value); \ goto cleanup; \ - } + } while(0); /** * goto_cleanup_if_fail: -- cgit