From: Yu Watanabe Date: Wed, 6 Feb 2019 15:17:59 +0000 (+0100) Subject: pull: fix invalid error check X-Git-Tag: v241~24^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b5b4bed1778d16680d97b73a4555568d956e588;p=thirdparty%2Fsystemd.git pull: fix invalid error check This fixes a bug introduced by 0d94088e4e9e00f5ca9afdb8e68c94558fe23268. --- diff --git a/src/import/pull-job.c b/src/import/pull-job.c index a44e0a7eda9..6881bd627f3 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);