Remove passing NULL as a format string parameter
in test. Convert to FAIL_IF_NULL.
FAIL_IF_NULL(result);
char *str = strstr(result, "OpenDocument Text");
- if (str == NULL) {
- printf("result %s, not \"OpenDocument Text\": ", str);
- FAIL;
- }
+ FAIL_IF_NULL(str);
magic_close(magic_ctx);
PASS;
FAIL_IF_NULL(result);
char *str = strstr(result, "OpenDocument Text");
- if (str == NULL) {
- printf("result %s, not \"OpenDocument Text\": ", str);
- FAIL;
- }
+ FAIL_IF_NULL(str);
MagicDeinit();
PASS;