patch 9.0.1234: the code style has to be checked manually
Problem: The code style has to be checked manually.
Solution: Add basic code style checks in a test. Fix or avoid uncovered
problems.
diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c
index 18e5547..3a93649 100644
--- a/src/os_mac_conv.c
+++ b/src/os_mac_conv.c
@@ -107,7 +107,8 @@
// Determine output buffer size
CFStringGetBytes(cfstr, convertRange, to, NULL, FALSE, NULL, 0, (CFIndex *)&buflen);
retval = (buflen > 0) ? alloc(buflen) : NULL;
- if (retval == NULL) {
+ if (retval == NULL)
+ {
CFRelease(cfstr);
return NULL;
}
@@ -543,7 +544,8 @@
utf8_str = CFStringCreateWithBytes(NULL, from, fromLen,
kCFStringEncodingUTF8, FALSE);
- if (utf8_str == NULL) {
+ if (utf8_str == NULL)
+ {
if (actualLen)
*actualLen = 0;
return NULL;