looks as trim to not strip all trailing symbols.
I have tested

diff --git a/src/modules/lost/functions.c b/src/modules/lost/functions.c
index c94c7883f0..b152b08300 100644
--- a/src/modules/lost/functions.c
+++ b/src/modules/lost/functions.c
@@ -290,6 +290,9 @@ int lost_held_function(struct sip_msg *_m, char *_con, char *_pidf, char *_url,
                                if(xmlStrcmp(cur_node->name,
                                                        (const xmlChar *)"locationUriSet") == 0) {
 
+                                       str test = {"test\n", 5};
+                                       trim(&test);
+                                       LM_WARN("'%s' after\n", test.s);
                                        LM_DBG("*** node '%s' found\n", cur_node->name);
 
                                        /* get the locationUri element */

This produce message in log

 1(8906) WARNING: lost [functions.c:307]: lost_held_function(): 'test
' after

This produce


Looks as trailing `\n` not removed.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.