chiark / gitweb /
import: fix compiler warning
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Dec 2014 18:05:23 +0000 (19:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Dec 2014 18:15:27 +0000 (19:15 +0100)
src/import/import-dkr.c

index e2910f9..205deb9 100644 (file)
@@ -1103,7 +1103,7 @@ int dkr_import_pull(DkrImport *import, const char *index_url, const char *name,
                 return -ENOMEM;
         e = endswith(n->index_url, "/");
         if (e)
                 return -ENOMEM;
         e = endswith(n->index_url, "/");
         if (e)
-                *e = NULL;
+                *e = 0;
 
         n->name = strdup(name);
         if (!n->name)
 
         n->name = strdup(name);
         if (!n->name)