pespin submitted this change.
gsup_client: Avoid double memset 0
Memory is already zeroed during talloc_zero, no need to reset it to
zero.
Change-Id: I66515fc893ffc64a36abedc01a75b57aed7e932d
---
M src/gsupclient/gsup_client.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gsupclient/gsup_client.c b/src/gsupclient/gsup_client.c
index 1168c9d..3451677 100644
--- a/src/gsupclient/gsup_client.c
+++ b/src/gsupclient/gsup_client.c
@@ -307,7 +307,7 @@
OSMO_ASSERT(config->ipa_dev->unit_name);
- gsupc = talloc_zero(talloc_ctx, struct osmo_gsup_client);
+ gsupc = talloc(talloc_ctx, struct osmo_gsup_client);
OSMO_ASSERT(gsupc);
*gsupc = (struct osmo_gsup_client){
.unit_name = (const char *)config->ipa_dev->unit_name, /* API backwards compat */
To view, visit change 39006. To unsubscribe, or for help writing mail filters, visit settings.