Module: kamailio
Branch: master
Commit: 4ada818099b5b7cb7deff1b1ce93b5aacaa1b84e
URL:
https://github.com/kamailio/kamailio/commit/4ada818099b5b7cb7deff1b1ce93b5a…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Committer: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-03-22T10:30:30Z
file_out: Cast to correct type of str
---
Modified: src/modules/file_out/file_out.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4ada818099b5b7cb7deff1b1ce93b5a…
Patch:
https://github.com/kamailio/kamailio/commit/4ada818099b5b7cb7deff1b1ce93b5a…
---
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;
}