summaryrefslogtreecommitdiffstats
path: root/src/tload.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-10-15 14:30:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-10-15 14:30:58 +0200
commit61fa7141bbb03ec8d326a6d1408a1d33629d56e2 (patch)
treec801182ba8d9a086ef037f3c67ebb2f7efe77862 /src/tload.c
parent57fb232687f9e85aca953af3dcc2fd2d1f2411cf (diff)
Fix detection of empty list when loading partitions list from backup.log
Diffstat (limited to 'src/tload.c')
-rw-r--r--src/tload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tload.c b/src/tload.c
index e29ac6b..2bfc31e 100644
--- a/src/tload.c
+++ b/src/tload.c
@@ -79,7 +79,7 @@ static struct td_list_head *interface_load_ncurses(disk_t *disk_car, backup_disk
{
aff_copy(stdscr);
mvwaddstr(stdscr,4,0,disk_car->description(disk_car));
- if(backup_list!=NULL)
+ if(!td_list_empty(&backup_list->list))
{
mvwaddstr(stdscr,5,0,"Choose the backup you want to restore:");
mvwaddstr(stdscr,20,0,"PS: Don't worry you will have to confirm the partition restoration.");
@@ -90,7 +90,7 @@ static struct td_list_head *interface_load_ncurses(disk_t *disk_car, backup_disk
}
rewrite=0;
}
- if(backup_list!=NULL)
+ if(!td_list_empty(&backup_list->list))
{
backup_disk_t *backup=NULL;
for(i=0,backup_walker=backup_list->list.next;