Change in libosmocore[master]: stat, rate_ctr: allow setting group name using a format string

fixeria gerrit-no-reply at lists.osmocom.org
Mon Jun 7 11:38:43 UTC 2021


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

Change subject: stat,rate_ctr: allow setting group name using a format string
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/c/libosmocore/+/24576/1/src/rate_ctr.c 
File src/rate_ctr.c:

https://gerrit.osmocom.org/c/libosmocore/+/24576/1/src/rate_ctr.c@307 
PS1, Line 307: 	grp->name = name;
> why not using "osmo_talloc_replace_string(grp, &grp->name, name);" here instead of freeing above? It […]
Because osmo_talloc_replace_string() duplicates the given string using talloc_strdup(). This means I would need to talloc_free(name) here, so I don't see it as a better solution.



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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6e813476cfb6a0ad275c4a51e9f065eeca8cb406
Gerrit-Change-Number: 24576
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Mon, 07 Jun 2021 11:38:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin at sysmocom.de>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210607/0e3e263e/attachment.htm>


More information about the gerrit-log mailing list