Browse Source

rtpengine: init all struct to get rid of compile warnings

Daniel-Constantin Mierla 8 years ago
parent
commit
76e2a0dd05
1 changed files with 1 additions and 2 deletions
  1. 1 2
      modules/rtpengine/rtpengine.c

+ 1 - 2
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) {
 static inline str str_prefix(const str *p, const char *q) {
-	str ret;
-	ret.s = NULL;
+	str ret = STR_NULL;
 	int l = strlen(q);
 	int l = strlen(q);
 	if (p->len < l)
 	if (p->len < l)
 		return ret;
 		return ret;