From 66e21520f369ab92b49a515704b68fa842face85 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 28 Nov 2019 16:02:13 +0100 Subject: curl_setup_once: consistently use WHILE_FALSE in macros The WHILE_FALSE construction is used to avoid compiler warnings in macro constructions. This fixes a few instances where it was not used in order to keep the code consistent. Closes #4649 Reviewed-by: Daniel Stenberg --- lib/vssh/libssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vssh') diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 070879d94..ef8745246 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -98,7 +98,7 @@ /* A recent macro provided by libssh. Or make our own. */ #ifndef SSH_STRING_FREE_CHAR #define SSH_STRING_FREE_CHAR(x) \ - do { if((x) != NULL) { ssh_string_free_char(x); x = NULL; } } while(0) + do { if((x) != NULL) { ssh_string_free_char(x); x = NULL; } } WHILE_FALSE #endif /* Local functions: */ -- cgit v1.2.3