summaryrefslogtreecommitdiff
path: root/lib/curl_multibyte.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-12-16 08:50:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-12-17 07:36:11 +0100
commitbdb5b6dd5b91a7960b778a2a6e76af028fc5596a (patch)
tree29167228f4c816c0b1d80e42fa44f1d77b5b4269 /lib/curl_multibyte.h
parent7282093458628b1040e76ff5cb6b9a53dc6afdd7 (diff)
downloadcurl-bdb5b6dd5b91a7960b778a2a6e76af028fc5596a.tar.gz
lib: remove ASSIGNWITHINCONDITION exceptions, use our code style
... even for macros Reviewed-by: Daniel Gustafsson Reviewed-by: Jay Satiro Reported-by: Jay Satiro Fixes #4683 Closes #4722
Diffstat (limited to 'lib/curl_multibyte.h')
-rw-r--r--lib/curl_multibyte.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/curl_multibyte.h b/lib/curl_multibyte.h
index 5225e1811..3becf41cf 100644
--- a/lib/curl_multibyte.h
+++ b/lib/curl_multibyte.h
@@ -61,8 +61,13 @@ char *Curl_convert_wchar_to_UTF8(const wchar_t *str_w);
#define Curl_convert_UTF8_to_tchar(ptr) Curl_convert_UTF8_to_wchar((ptr))
#define Curl_convert_tchar_to_UTF8(ptr) Curl_convert_wchar_to_UTF8((ptr))
-#define Curl_unicodefree(ptr) \
- do {if((ptr)) {free((ptr)); (ptr) = NULL;}} while(0)
+#define Curl_unicodefree(ptr) \
+ do { \
+ if(ptr) { \
+ free(ptr); \
+ (ptr) = NULL; \
+ } \
+ } while(0)
typedef union {
unsigned short *tchar_ptr;