chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
import: fix compiler warning
[elogind.git]
/
src
/
import
/
import-dkr.c
diff --git
a/src/import/import-dkr.c
b/src/import/import-dkr.c
index e2910f940fa1a69702e24739d029bfca0c3b5ab3..205deb9cda62e6fd0bd9de80f1ce9a646ef6f9e6 100644
(file)
--- 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)