summaryrefslogtreecommitdiffstats
path: root/src/partmac.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-02-27 08:34:32 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-02-27 08:34:32 +0100
commit003eff18676045b83b9cb92a0c2baebb011c893f (patch)
tree9492482f2acdd9f08ee04d1f73dfecf329ee13c9 /src/partmac.c
parenteced0b1b31bd0a9c9f4c7c697e98a111e41f7ae2 (diff)
partmac.c: code cleanup
Diffstat (limited to 'src/partmac.c')
-rw-r--r--src/partmac.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/partmac.c b/src/partmac.c
index 8099d6b..1d4f13e 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -142,6 +142,7 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
aff_buffer(BUFFER_ADD,"read_part_mac: bad DPME signature\n");
return new_list_part;
}
+ else
{
int insert_error=0;
partition_t *new_partition=partition_new(&arch_mac);
@@ -194,10 +195,10 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
new_list_part=insert_new_partition(new_list_part, new_partition, 0, &insert_error);
if(insert_error>0)
free(new_partition);
- }
- if(i==1)
- {
- limit=be32(dpme->dpme_map_entries);
+ if(i==1)
+ {
+ limit=be32(dpme->dpme_map_entries);
+ }
}
}
return new_list_part;