summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-23 19:05:23 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-23 19:15:27 +0100
commit6eeeb84c96d3f42c0e7726f8f45c06a0a886b4e4 (patch)
treefd7abfa44c83496443b22057d6c9fe2c28b31103 /src
parent039f0e70a0fcd71dcf7cc2f3ba2cea2e3b186a60 (diff)
import: fix compiler warning
Diffstat (limited to 'src')
-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)