diff --git a/modules/libmar/src/mar_create.c b/modules/libmar/src/mar_create.c index 0ac2bf7b2cdf..5c8e8a0a8068 100644 --- a/modules/libmar/src/mar_create.c +++ b/modules/libmar/src/mar_create.c @@ -250,13 +250,13 @@ int refresh_product_info_block(const char* path, fclose(fp); return 0; - } else { - /* This is not the additional block you're looking for. Move along. */ - if (fseek(fp, additionalBlockSize, SEEK_CUR)) { - fprintf(stderr, "ERROR: Could not seek past current block.\n"); - fclose(fp); - return -1; - } + } + + /* This is not the additional block you're looking for. Move along. */ + if (fseek(fp, additionalBlockSize, SEEK_CUR)) { + fprintf(stderr, "ERROR: Could not seek past current block.\n"); + fclose(fp); + return -1; } }