summaryrefslogtreecommitdiff
path: root/src/import/import-dkr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/import-dkr.c')
-rw-r--r--src/import/import-dkr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import-dkr.c b/src/import/import-dkr.c
index e2910f940f..205deb9cda 100644
--- a/src/import/import-dkr.c
+++ b/src/import/import-dkr.c
@@ -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)