[sr-dev] git:master:f879b4c4: core: small improvement related to commit 5e42adae624f9741 in cfg parser

Henning Westerholt hw at skalatan.de
Thu Mar 5 18:14:07 CET 2020


Module: kamailio
Branch: master
Commit: f879b4c4d75777892f160d8abe639c6f15f68569
URL: https://github.com/kamailio/kamailio/commit/f879b4c4d75777892f160d8abe639c6f15f68569

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at 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/f879b4c4d75777892f160d8abe639c6f15f68569.diff
Patch: https://github.com/kamailio/kamailio/commit/f879b4c4d75777892f160d8abe639c6f15f68569.patch

---

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:




More information about the sr-dev mailing list