]> git.deb.at Git - pkg/abook.git/blobdiff - database.c
Replaced some items < 1 with list_is_empty()
[pkg/abook.git] / 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() )