pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42218?usp=email )
Change subject: tests: Use mem alloc macro instead of direct calloc() call ......................................................................
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");