]> git.deb.at Git - pkg/abook.git/commitdiff
Replaced some items < 1 with list_is_empty()
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 24 Apr 2001 13:58:39 +0000 (13:58 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 24 Apr 2001 13:58:39 +0000 (13:58 +0000)
database.c

index a2c396dedb3a676033f85f870b842fc3dbf67112..2bcda3de5583af412c73dd145df5c9b473e805d4 100644 (file)
@@ -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() )