Module: kamailio
Branch: master
Commit: f879b4c4d75777892f160d8abe639c6f15f68569
URL:
https://github.com/kamailio/kamailio/commit/f879b4c4d75777892f160d8abe639c6…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-03-05T18:13:33+01:00
core: small improvement related to commit 5e42adae624f9741 in cfg parser
---
Modified: src/core/cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/f879b4c4d75777892f160d8abe639c6…
Patch:
https://github.com/kamailio/kamailio/commit/f879b4c4d75777892f160d8abe639c6…
---
diff --git a/src/core/cfg.y b/src/core/cfg.y
index 29b5b4aa1d..114b8b9c0f 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -2673,7 +2673,7 @@ attr_mark:
ATTR_MARK {
s_attr = (struct avp_spec*)pkg_malloc(sizeof(struct avp_spec));
if (!s_attr) { yyerror("No memory left"); YYABORT; }
- else { memset(s_attr, 0, (sizeof(struct avp_spec))); s_attr->type = 0; }
+ else { memset(s_attr, 0, (sizeof(struct avp_spec))); }
}
;
attr_id: