summaryrefslogtreecommitdiffstats
path: root/src/partsun.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-12-08 17:58:27 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-12-08 17:58:27 +0100
commit190b91b85e64505fecda5bbc920c9f95fe02d964 (patch)
tree9e26392de7b948956d50d67a37ae2c96464d23cc /src/partsun.c
parent80385c0ed135bc24b9241e31b432afee63bc4e09 (diff)
various code cleanup
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 5ce33df..77e6b19 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -274,9 +274,8 @@ static void set_next_status_sun(const disk_t *disk_car, partition_t *partition)
static int test_structure_sun(list_part_t *list_part)
{ /* Return 1 if bad*/
- list_part_t *new_list_part=NULL;
int res;
- new_list_part=gen_sorted_partition_list(list_part);
+ list_part_t *new_list_part=gen_sorted_partition_list(list_part);
res=is_part_overlapping(new_list_part);
part_free_list_only(new_list_part);
return res;