summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-03-02 11:57:34 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-03-02 11:57:34 +0000
commitdce077bd995993e59559c04c18a45401bce94e5c (patch)
treea0ca6e0566d9c3aac8bb8e458cb98f9e2a38d420
parent49bed47bd21b2fb913a3609b71867718f37130fd (diff)
downloadlasso-dce077bd995993e59559c04c18a45401bce94e5c.tar.gz
lasso-dce077bd995993e59559c04c18a45401bce94e5c.tar.xz
lasso-dce077bd995993e59559c04c18a45401bce94e5c.zip
Core: add do/while(0) around block of goto_cleanup_with_rc
-rw-r--r--lasso/utils.h4
1 files 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: