Module: kamailio Branch: 5.8 Commit: 3fac5afc42a606391d6a7c0337ef5e4e136d6b80 URL: https://github.com/kamailio/kamailio/commit/3fac5afc42a606391d6a7c0337ef5e4e...
Author: Xenofon Karamanos 22965395+xkaraman@users.noreply.github.com Committer: Xenofon Karamanos 22965395+xkaraman@users.noreply.github.com Date: 2024-03-26T09:57:49Z
file_out: Cast to correct type of str
(cherry picked from commit 4ada818099b5b7cb7deff1b1ce93b5aacaa1b84e)
---
Modified: src/modules/file_out/file_out.c
---
Diff: https://github.com/kamailio/kamailio/commit/3fac5afc42a606391d6a7c0337ef5e4e... Patch: https://github.com/kamailio/kamailio/commit/3fac5afc42a606391d6a7c0337ef5e4e...
---
diff --git a/src/modules/file_out/file_out.c b/src/modules/file_out/file_out.c index 7e035f13359..886f01f944f 100644 --- a/src/modules/file_out/file_out.c +++ b/src/modules/file_out/file_out.c @@ -344,7 +344,7 @@ static int fo_add_filename(modparam_t type, void *val) LM_ERR("modparam value is null\n"); return -1; } - if(strlen((char *)val) == 0) { + if(strlen(((str *)val)->s) == 0) { LM_ERR("modparam value is empty\n"); return -1; }