aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-07 21:31:33 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-07 21:31:33 +0530
commitd79ee47a5142cf7228ff4892c27469ba6223c202 (patch)
tree59d1c5934e6ce0fa9558793a8713d24029a7425d
parentfcffe90cff6a09500469a0f0e9c9eef5b0322240 (diff)
engine: eachdo: unwrap() key
-rw-r--r--src/engine/eachdo.c11
1 files 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;