diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-02-06 16:17:59 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-02-06 16:18:01 +0100 |
commit | 9b5b4bed1778d16680d97b73a4555568d956e588 (patch) | |
tree | e6aadfbc0ea84930130ff2602d7ea36079fdd3f3 /src/import/pull-job.c | |
parent | test-network: ignore tunnel devices automatically added by kernel (diff) | |
download | systemd-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.c | 2 |
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); |