From 5f686aabd6d8d5183bb391cf6103a334aef29268 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Tue, 24 Apr 2001 13:58:39 +0000 Subject: [PATCH] Replaced some items < 1 with list_is_empty() --- database.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.c b/database.c index a2c396d..2bcda3d 100644 --- a/database.c +++ b/database.c @@ -170,7 +170,7 @@ save_database() if( (out = abook_fopen(datafile, "w")) == NULL ) return -1; - if( items < 1 ) { + if( list_is_empty() ) { fclose(out); unlink(datafile); return 1; @@ -280,7 +280,7 @@ remove_selected_items() { int i, j; - if( items < 1 || curitem < 0 ) + if( list_is_empty() ) return; if( ! selected_items() ) -- 2.39.2