From: Jaakko Heinonen Date: Tue, 24 Apr 2001 13:58:39 +0000 (+0000) Subject: Replaced some items < 1 with list_is_empty() X-Git-Tag: upstream/0.6.1~2^2~382 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=5f686aabd6d8d5183bb391cf6103a334aef29268;p=pkg%2Fabook.git Replaced some items < 1 with list_is_empty() --- 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() )