format: Unify support_format error handling

Always return r to unify style for easier audits.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
This commit is contained in:
Tobias Stoeckmann committed 2026-08-03 19:57:25 +02:00
1 parent d42b4c1999
commit cb3cd6f09c
3 files changed
+6 -12

No files matched your search

+2 -4
View File
@@ -125,11 +125,9 @@ archive_read_support_format_ar(struct archive *_a)
NULL,
NULL);
if (r != ARCHIVE_OK) {
if (r != ARCHIVE_OK)
free(ar);
return (r);
}
return (ARCHIVE_OK);
return (r);
}
static int
@@ -491,11 +491,9 @@ archive_read_support_format_iso9660(struct archive *_a)
NULL,
NULL);
if (r != ARCHIVE_OK) {
if (r != ARCHIVE_OK)
free(iso9660);
return (r);
}
return (ARCHIVE_OK);
return (r);
}
@@ -168,11 +168,9 @@ archive_read_support_format_warc(struct archive *_a)
NULL,
NULL);
if (r != ARCHIVE_OK) {
if (r != ARCHIVE_OK)
free(warc);
return (r);
}
return (ARCHIVE_OK);
return (r);
}
static int