From 7c8457876f688284c72dc381ad3ae81894531c03 Mon Sep 17 00:00:00 2001 From: Anton Adamansky Date: Thu, 2 Feb 2023 20:11:42 +0200 Subject: [PATCH] * Fix of aws4dd_scan_value() --- src/aws4dd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aws4dd.c b/src/aws4dd.c index 7694a04..2415b69 100644 --- a/src/aws4dd.c +++ b/src/aws4dd.c @@ -1614,13 +1614,13 @@ iwrc aws4dd_scan_array(struct aws4dd_scan *op, const char *path, const char *key return _item_put(op->pool, op->n, path, key, values); } -iwrc aws4dd_scan_value(struct aws4dd_scan *op, const char *path, const char *key, const char *val) { - return aws4dd_scan_array(op, path, key, (const char*[]) {}); +iwrc aws4dd_scan_value(struct aws4dd_scan *op, const char *path, const char *key, const char *value) { + return aws4dd_scan_array(op, path, key, (const char*[]) { value, 0 }); } -iwrc aws4dd_scan_value_i64(struct aws4dd_scan *op, const char *path, int64_t val) { +iwrc aws4dd_scan_value_i64(struct aws4dd_scan *op, const char *path, int64_t value) { char nbuf[IWNUMBUF_SIZE]; - iwitoa(val, nbuf, sizeof(nbuf)); + iwitoa(value, nbuf, sizeof(nbuf)); return aws4dd_scan_value(op, path, "N", nbuf); }