mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:23:58 +03:00
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 <daniel@haxx.se>
This commit is contained in:
parent
bb8cf05169
commit
66e21520f3
3 changed files with 4 additions and 4 deletions
|
|
@ -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: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue