Module: kamailio
Branch: master
Commit: 2260808c09cb2f9f9b17c97bf3ac22d80e83b0a7
URL:
https://github.com/kamailio/kamailio/commit/2260808c09cb2f9f9b17c97bf3ac22d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-26T22:07:59+01:00
presence: replaced removed macro SHM_MEM_STR
---
Modified: src/modules/presence/subscribe.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2260808c09cb2f9f9b17c97bf3ac22d…
Patch:
https://github.com/kamailio/kamailio/commit/2260808c09cb2f9f9b17c97bf3ac22d…
---
diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c
index e5d8c62d30..c2f155f74e 100644
--- a/src/modules/presence/subscribe.c
+++ b/src/modules/presence/subscribe.c
@@ -2694,14 +2694,14 @@ int restore_db_subs(void)
if(event== NULL)
{
free_event_params(parsed_event.params.list, PKG_MEM_TYPE);
- ERR_MEM(SHM_MEM_STR);
+ ERR_MEM("shm");
}
memset(event, 0, sizeof(pres_ev_t));
event->name.s= (char*)shm_malloc(ev_sname.len* sizeof(char));
if(event->name.s== NULL)
{
free_event_params(parsed_event.params.list, PKG_MEM_TYPE);
- ERR_MEM(SHM_MEM_STR);
+ ERR_MEM("shm");
}
memcpy(event->name.s,ev_sname.s, ev_sname.len);
event->name.len= ev_sname.len;