Change in osmo-bts[master]: cbch: cosmetic: use talloc_zero() in bts_process_smscb_cmd()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Dec 12 16:41:27 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/26533 )


Change subject: cbch: cosmetic: use talloc_zero() in bts_process_smscb_cmd()
......................................................................

cbch: cosmetic: use talloc_zero() in bts_process_smscb_cmd()

Change-Id: Ibb5090b7cd53c1a485d0b9474c6470fa5831de67
---
M src/common/cbch.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/33/26533/1

diff --git a/src/common/cbch.c b/src/common/cbch.c
index f1f8b6a..f65df0d 100644
--- a/src/common/cbch.c
+++ b/src/common/cbch.c
@@ -198,7 +198,7 @@
 		return -EINVAL;
 	}
 
-	scm = talloc_zero_size(bts, sizeof(*scm));
+	scm = talloc_zero(bts, struct smscb_msg);
 	if (!scm)
 		return -1;
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5090b7cd53c1a485d0b9474c6470fa5831de67
Gerrit-Change-Number: 26533
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211212/c5fa3885/attachment.htm>


More information about the gerrit-log mailing list