summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-15 16:42:45 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-19 18:29:59 +0100
commitc6cb8daf723978b98c4d6f0b627ad3fdc4954c53 (patch)
tree374043b10237fe997136893d803d08b6b27bf8d1
parent7d41de2e948ce59af08b7193856bb9d4fcd931a8 (diff)
downloadsystemd-c6cb8daf723978b98c4d6f0b627ad3fdc4954c53.tar.gz
import: make scope of variable smaller
-rw-r--r--src/import/pull-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/pull-common.c b/src/import/pull-common.c
index 33be609aec..243cf7cb85 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);