aboutsummaryrefslogtreecommitdiff
path: root/lib/vssh
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/vssh
parent7282093458628b1040e76ff5cb6b9a53dc6afdd7 (diff)
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/vssh')
-rw-r--r--lib/vssh/libssh.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index cad8b3786..62a7f1960 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -97,9 +97,13 @@
/* A recent macro provided by libssh. Or make our own. */
#ifndef SSH_STRING_FREE_CHAR
-/* !checksrc! disable ASSIGNWITHINCONDITION 1 */
-#define SSH_STRING_FREE_CHAR(x) \
- do { if((x) != NULL) { ssh_string_free_char(x); x = NULL; } } while(0)
+#define SSH_STRING_FREE_CHAR(x) \
+ do { \
+ if(x) { \
+ ssh_string_free_char(x); \
+ x = NULL; \
+ } \
+ } while(0)
#endif
/* Local functions: */