pespin has uploaded this change for review.

View Change

tests: Use mem alloc macro instead of direct calloc() call

This way we make sure the proper function to alloc is called.

Change-Id: Ia9c7cf1f958f273dd7a5e23cf7633e45fa9d577f
---
M tests/parse/tcap_parse_test.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-asn1-tcap refs/changes/18/42218/1
diff --git a/tests/parse/tcap_parse_test.c b/tests/parse/tcap_parse_test.c
index 6a52cea..0f44963 100644
--- a/tests/parse/tcap_parse_test.c
+++ b/tests/parse/tcap_parse_test.c
@@ -30,7 +30,7 @@
{
asn_dec_rval_t rc;
struct TCAP_TCMessage *tcapmsg;
- tcapmsg = calloc(1, sizeof(*tcapmsg));
+ tcapmsg = CALLOC(1, sizeof(*tcapmsg));

printf("Basic TCAP decode testing.\n");


To view, visit change 42218. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-asn1-tcap
Gerrit-Branch: master
Gerrit-Change-Id: Ia9c7cf1f958f273dd7a5e23cf7633e45fa9d577f
Gerrit-Change-Number: 42218
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>