Module: kamailio
Branch: master
Commit: e656ed7400e735ec867875d20b9ae117af7001b5
URL:
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae11…
Author: James Aimonetti <james.aimonetti(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-01-08T09:37:00+01:00
core: explicitly cast void* to char* in shm_char_dup()
- fix gcc 9.2 warning
- GH #2191
---
Modified: src/core/ut.h
---
Diff:
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae11…
Patch:
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae11…
---
diff --git a/src/core/ut.h b/src/core/ut.h
index a841449164..56c1f9e157 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -808,7 +808,7 @@ static inline char* shm_char_dup(const char *src)
}
len = strlen(src) + 1;
- rval = shm_malloc(len);
+ rval = (char*)shm_malloc(len);
if (!rval) {
SHM_MEM_ERROR;
return NULL;