Module: kamailio
Branch: master
Commit: 851fe7f7de78a41c9e0e1b67d437201bb49b7941
URL:
https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-12-28T12:14:26+01:00
core: use SHM_MEM_ERROR helper define after commit 4c57d02e
---
Modified: src/main.c
---
Diff:
https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201…
Patch:
https://github.com/kamailio/kamailio/commit/851fe7f7de78a41c9e0e1b67d437201…
---
diff --git a/src/main.c b/src/main.c
index ad992a56be..ac58b760ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1271,7 +1271,7 @@ int main_loop(void)
if(_sr_instance_started == NULL) {
_sr_instance_started = shm_malloc(sizeof(int));
if(_sr_instance_started == NULL) {
- LM_ERR("no shared memory\n");
+ SHM_MEM_ERROR;
goto error;
}
*_sr_instance_started = 0;