diff options
-rw-r--r-- | src/engine/eachdo.c | 11 |
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; |