From d79ee47a5142cf7228ff4892c27469ba6223c202 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Thu, 7 Aug 2025 21:31:33 +0530 Subject: engine: eachdo: unwrap() key --- src/engine/eachdo.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/engine/eachdo.c b/src/engine/eachdo.c index f0a43fc..506b64a 100644 --- a/src/engine/eachdo.c +++ b/src/engine/eachdo.c @@ -73,13 +73,12 @@ fetch_files(eachdo_operands_t *operands, } case PUT: { - ptr_wrapper_t *key_wrp - = list_find_corresponding_value_from_ptr_wrapper( - config->keys, config->values, trim(_directive->operands)); + char *key = unwrap(list_find_corresponding_value_from_ptr_wrapper( + config->keys, config->values, trim(_directive->operands))); - if (key_wrp != NULL) { - list_wrap_and_add(atoms, strdup(key_wrp->ptr)); - *length += strlen(key_wrp->ptr); + if (key != NULL) { + list_wrap_and_add(atoms, strdup(key)); + *length += strlen(key); } break; -- cgit v1.2.3