Module: kamailio
Branch: master
Commit: 76e2a0dd05aa1a6fb3148c231d57cd2278ced9d2
URL:
https://github.com/kamailio/kamailio/commit/76e2a0dd05aa1a6fb3148c231d57cd2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-03T08:47:01+01:00
rtpengine: init all struct to get rid of compile warnings
---
Modified: modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76e2a0dd05aa1a6fb3148c231d57cd2…
Patch:
https://github.com/kamailio/kamailio/commit/76e2a0dd05aa1a6fb3148c231d57cd2…
---
diff --git a/modules/rtpengine/rtpengine.c b/modules/rtpengine/rtpengine.c
index a3787eb..6b46074 100644
--- a/modules/rtpengine/rtpengine.c
+++ b/modules/rtpengine/rtpengine.c
@@ -593,8 +593,7 @@ static inline int str_eq(const str *p, const char *q) {
}
static inline str str_prefix(const str *p, const char *q) {
- str ret;
- ret.s = NULL;
+ str ret = STR_NULL;
int l = strlen(q);
if (p->len < l)
return ret;