diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-03 22:31:03 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-04 13:22:27 +0100 |
commit | 53433719f6449dfa2597c11aba24d82382479ec3 (patch) | |
tree | a18c2481192a3f6680859c69cfdd87d258f2428b /onlineupdate | |
parent | 0bcdce24340e5d3c32733e2d7ec663dd182a5252 (diff) |
onlineupdate: -Werror=unused-variable
There are actually 2 identical copies of the file in onlineupdate! WTF?
Change-Id: I967bd90045ca0f56db151dd82d3baf8e848a8863
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/source/libmar/src/mar_read.c | 2 | ||||
-rw-r--r-- | onlineupdate/source/update/src/mar_read.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/onlineupdate/source/libmar/src/mar_read.c b/onlineupdate/source/libmar/src/mar_read.c index c7c4bdf19554..34f8e8060485 100644 --- a/onlineupdate/source/libmar/src/mar_read.c +++ b/onlineupdate/source/libmar/src/mar_read.c @@ -405,6 +405,8 @@ mar_read_product_info_block(MarFile *mar, &hasAdditionalBlocks, &offsetAdditionalBlocks, &numAdditionalBlocks); + if (ret) + return ret; for (i = 0; i < numAdditionalBlocks; ++i) { /* Read the additional block size */ if (fread(&additionalBlockSize, diff --git a/onlineupdate/source/update/src/mar_read.c b/onlineupdate/source/update/src/mar_read.c index c7c4bdf19554..34f8e8060485 100644 --- a/onlineupdate/source/update/src/mar_read.c +++ b/onlineupdate/source/update/src/mar_read.c @@ -405,6 +405,8 @@ mar_read_product_info_block(MarFile *mar, &hasAdditionalBlocks, &offsetAdditionalBlocks, &numAdditionalBlocks); + if (ret) + return ret; for (i = 0; i < numAdditionalBlocks; ++i) { /* Read the additional block size */ if (fread(&additionalBlockSize, |