From 7491350ab6771e9125284b49e25945063dc16ead Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 9 Aug 2016 13:51:02 +0200 Subject: [PATCH] utils_db_query.c: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit utils_db_query.c: In function ‘udb_result_submit’: utils_db_query.c:259:11: warning: declaration of ‘status’ shadows a previous local [-Wshadow] int status = strjoin (vl.type_instance, sizeof (vl.type_instance), ^~~~~~ --- src/utils_db_query.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils_db_query.c b/src/utils_db_query.c index 8eae6b8c..c8019845 100644 --- a/src/utils_db_query.c +++ b/src/utils_db_query.c @@ -199,7 +199,6 @@ static int udb_result_submit (udb_result_t *r, /* {{{ */ udb_query_t const *q, udb_query_preparation_area_t *q_area) { value_list_t vl = VALUE_LIST_INIT; - int status; assert (r != NULL); assert (r_area->ds != NULL); @@ -298,7 +297,7 @@ static int udb_result_submit (udb_result_t *r, /* {{{ */ for (size_t i = 0; i < r->metadata_num; i++) { - status = meta_data_add_string (vl.meta, r->metadata[i], + int status = meta_data_add_string (vl.meta, r->metadata[i], r_area->metadata_buffer[i]); if (status != 0) { -- 2.30.2