From 43d4833dd659fc6c0e31b7eff419df498a286418 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 4 Jul 2011 16:06:16 +0200 Subject: [PATCH] Reacted on warnings of -Wunused-but-set-variable --- libisofs/system_area.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 0f57081..d76c37b 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -683,7 +683,8 @@ static int make_sun_disk_label(Ecma119Image *t, uint8_t *buf, int flag) ret = write_sun_partition_entry(1, t->appended_partitions, t->appended_part_start, t->appended_part_size, ISO_SUN_CYL_SIZE, buf, 0); - + if (ret < 0) + return ret; return ISO_SUCCESS; }