Nikolay Sivov (@nsivov) commented about dlls/opcservices/compress.c:
memset(&z_str, 0, sizeof(z_str)); z_str.zalloc = zalloc; z_str.zfree = zfree;
- deflateInit2(&z_str, level, Z_DEFLATED, -MAX_WBITS, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY);
- if((init_ret = deflateInit2(&z_str, level, Z_DEFLATED, -MAX_WBITS, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY)) != Z_OK)
WARN("Failed to allocate memory in deflateInit2, ret %d.\n", init_ret);
Please add a space after "if". I see no issues otherwise.