pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42218?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )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(-)
Approvals: fixeria: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
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");