laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/13312 )

Change subject: context: Add support for [per-thread] global talloc contexts
......................................................................


Patch Set 17:

(1 comment)

https://gerrit.osmocom.org/#/c/13312/17/src/context.c
File src/context.c:

https://gerrit.osmocom.org/#/c/13312/17/src/context.c@36
PS17, Line 36:  memset(osmo_ctx, 0, sizeof(*osmo_ctx));
> This memset is not needed, can be removed.
well, talloc_named is not talloc_zero.  Sure, right now we just have two 
pointers that we overwrite two lines below, but I would still keep it on 
principle.  As the function is only called once there's no performance issue 
either.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/13312
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iae39cd57274bf6753ecaf186f229e582b42662e3
Gerrit-Change-Number: 13312
Gerrit-PatchSet: 17
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: Max <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Comment-Date: Wed, 31 Jul 2019 20:45:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <[email protected]>
Gerrit-MessageType: comment

Reply via email to