import: fix compiler warning

This commit is contained in:
Lennart Poettering
2014-12-23 19:15:27 +01:00
parent 039f0e70a0
commit 6eeeb84c96
+1 -1
View 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)
*e = NULL;
*e = 0;
n->name = strdup(name);
if (!n->name)