From: Lennart Poettering Date: Fri, 15 Jan 2021 15:42:45 +0000 (+0100) Subject: import: make scope of variable smaller X-Git-Tag: v248-rc1~296^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6cb8daf723978b98c4d6f0b627ad3fdc4954c53;p=thirdparty%2Fsystemd.git import: make scope of variable smaller --- diff --git a/src/import/pull-common.c b/src/import/pull-common.c index 33be609aec5..243cf7cb858 100644 --- a/src/import/pull-common.c +++ b/src/import/pull-common.c @@ -255,7 +255,6 @@ int pull_make_verification_jobs( _cleanup_(pull_job_unrefp) PullJob *checksum_job = NULL, *signature_job = NULL; int r; - const char *chksums = NULL; assert(ret_checksum_job); assert(ret_signature_job); @@ -266,6 +265,7 @@ int pull_make_verification_jobs( if (verify != IMPORT_VERIFY_NO) { _cleanup_free_ char *checksum_url = NULL, *fn = NULL; + const char *chksums = NULL; /* Queue jobs for the checksum file for the image. */ r = import_url_last_component(url, &fn);