Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Alley <dalley@redhat.com>2021-11-28 09:56:52 +0300
committeramatej <matej.ales@seznam.cz>2021-11-29 10:25:20 +0300
commit7a8e9d0abf5e4d5249d1f347fbbb9e154808ec05 (patch)
tree99a13220ca9225c763e4ff55c42beb9ed28dd72d
parentb427654d68d708354086110c866c2057d844cf57 (diff)
Fix a bug in cr_repomd_record_compress_and_fill()
-rw-r--r--src/repomd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repomd.c b/src/repomd.c
index ce6f944..f68f77e 100644
--- a/src/repomd.c
+++ b/src/repomd.c
@@ -431,7 +431,7 @@ cr_repomd_record_compress_and_fill(cr_RepomdRecord *record,
dict_base = g_strndup(cpath, strlen(cpath)-4);
else
dict_base = g_strdup(cpath);
- file_basename = g_path_get_basename(dict_base);
+ file_basename = g_path_get_basename(dict_base);
_cleanup_free_ gchar *dict_file = cr_get_dict_file(zck_dict_dir, file_basename);
/* Read dictionary from file */
if (dict_file && !g_file_get_contents(dict_file, &dict,
@@ -556,8 +556,8 @@ cr_repomd_record_compress_and_fill(cr_RepomdRecord *record,
crecord->checksum = g_string_chunk_insert(crecord->chunk, cchecksum);
crecord->checksum_type = g_string_chunk_insert(crecord->chunk, checksum_str);
- crecord->checksum_open = g_string_chunk_insert(record->chunk, checksum);
- crecord->checksum_open_type = g_string_chunk_insert(record->chunk, checksum_str);
+ crecord->checksum_open = g_string_chunk_insert(crecord->chunk, checksum);
+ crecord->checksum_open_type = g_string_chunk_insert(crecord->chunk, checksum_str);
if (hdr_checksum_str) {
crecord->checksum_header = g_string_chunk_insert(crecord->chunk, hdrchecksum);
crecord->checksum_header_type = g_string_chunk_insert(crecord->chunk, hdr_checksum_str);