Skip to content

Commit

Permalink
file_out: Cast to correct type of str
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ada818)
  • Loading branch information
xkaraman committed Mar 26, 2024
1 parent 028ba8f commit 3fac5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/file_out/file_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3fac5af

Please sign in to comment.