]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
iso9660: prefer ARCHIVE_OK over literal in gen*identifier
authorDustin L. Howett <dustin@howett.net>
Fri, 10 Jul 2026 23:43:16 +0000 (18:43 -0500)
committerDustin L. Howett <dustin@howett.net>
Sat, 11 Jul 2026 01:26:31 +0000 (20:26 -0500)
libarchive/archive_write_set_format_iso9660.c

index ab77763faa1455b458d2f8d4094ee9e86463e2cc..c267eca1158279b32bbeb810c1411dcf3987385e 100644 (file)
@@ -6014,7 +6014,7 @@ isoent_gen_iso9660_identifier(struct archive_write *a, struct isoent *isoent,
        const int null_size = 1;
 
        if (isoent->children.cnt == 0)
-               return (0);
+               return (ARCHIVE_OK);
 
        iso9660 = a->format_data;
        char_map = idr->char_map;
@@ -6271,7 +6271,7 @@ isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent,
        const int null_size = 2;
 
        if (isoent->children.cnt == 0)
-               return (0);
+               return (ARCHIVE_OK);
 
        iso9660 = a->format_data;
        if (iso9660->opt.joliet == OPT_JOLIET_LONGNAME)