summaryrefslogtreecommitdiffstats
path: root/src/import/pull-job.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-02-06 16:17:59 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-02-06 16:18:01 +0100
commit9b5b4bed1778d16680d97b73a4555568d956e588 (patch)
treee6aadfbc0ea84930130ff2602d7ea36079fdd3f3 /src/import/pull-job.c
parenttest-network: ignore tunnel devices automatically added by kernel (diff)
downloadsystemd-9b5b4bed1778d16680d97b73a4555568d956e588.tar.xz
systemd-9b5b4bed1778d16680d97b73a4555568d956e588.zip
pull: fix invalid error check
This fixes a bug introduced by 0d94088e4e9e00f5ca9afdb8e68c94558fe23268.
Diffstat (limited to 'src/import/pull-job.c')
-rw-r--r--src/import/pull-job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/pull-job.c b/src/import/pull-job.c
index a44e0a7eda..6881bd627f 100644
--- a/src/import/pull-job.c
+++ b/src/import/pull-job.c
@@ -537,7 +537,7 @@ int pull_job_new(PullJob **ret, const char *url, CurlGlue *glue, void *userdata)
assert(ret);
u = strdup(url);
- if (u)
+ if (!u)
return -ENOMEM;
j = new(PullJob, 1);