pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/43761?usp=email )

 (

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: xua_msg: Drop __thread attribute on static buf
......................................................................

xua_msg: Drop __thread attribute on static buf

libosmo-sigtran is not thread safe, and hence makes no sense to have
only this static buffer (out of dozens declared) as TLS.

Related: OS#7061
Change-Id: Ia023b8df32494bc705326106753f17e7eeaf89cf
---
M src/xua_msg.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  osmith: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/xua_msg.c b/src/xua_msg.c
index 61281c4..122f6bc 100644
--- a/src/xua_msg.c
+++ b/src/xua_msg.c
@@ -357,7 +357,7 @@

 const char *xua_msg_part_get_str(const struct xua_msg_part *part)
 {
-       static char __thread buf[256];
+       static char buf[256];

        if (part->len == 0)
                return "";

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43761?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Ia023b8df32494bc705326106753f17e7eeaf89cf
Gerrit-Change-Number: 43761
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to