diff --git a/libisofs/builder.c b/libisofs/builder.c index 226e185..4b3ac61 100644 --- a/libisofs/builder.c +++ b/libisofs/builder.c @@ -215,6 +215,9 @@ int default_create_node(IsoNodeBuilder *builder, IsoImage *image, } } break; + default: + ret = ISO_BAD_FSRC_FILETYPE; + goto ex; } if (ret < 0) diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index 489c413..994d08b 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -8712,6 +8712,8 @@ int iso_conv_name_chars(IsoWriteOpts *opts, char *name, size_t name_len, /** General note (NOTE, HIGH, -414) */ #define ISO_GENERAL_NOTE 0xB030FE62 +/** Unrecognized file type of IsoFileSrc object (SORRY, HIGH, -415) */ +#define ISO_BAD_FSRC_FILETYPE 0xE030FE61 /* Internal developer note: Place new error codes directly above this comment. diff --git a/libisofs/messages.c b/libisofs/messages.c index 9675368..7d4d16e 100644 --- a/libisofs/messages.c +++ b/libisofs/messages.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2014 Thomas Schmitt + * Copyright (c) 2009 - 2015 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -541,6 +541,8 @@ const char *iso_error_to_msg(int errcode) return "File name truncation length changed by loaded image info"; case ISO_GENERAL_NOTE: return "A general note message was issued"; + case ISO_BAD_FSRC_FILETYPE: + return "Unrecognized file type of IsoFileSrc object"; default: return "Unknown error"; }