]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/country-list.c
importer: Drop EDROP as it has been merged into DROP
[people/ms/libloc.git] / src / country-list.c
index 0ed7ef1a53fe49016eb294d53a02404126cc5478..536fd9e121c08ff6b98784de36b99e121647a8ba 100644 (file)
@@ -17,6 +17,7 @@
 #include <errno.h>
 #include <stdlib.h>
 
+#include <libloc/compat.h>
 #include <libloc/country.h>
 #include <libloc/country-list.h>
 #include <libloc/private.h>
@@ -81,9 +82,6 @@ static void loc_country_list_free(struct loc_country_list* list) {
 }
 
 LOC_EXPORT struct loc_country_list* loc_country_list_unref(struct loc_country_list* list) {
-       if (!list)
-               return NULL;
-
        if (--list->refcount > 0)
                return list;