Browse code

rtpengine: init all struct to get rid of compile warnings

(cherry picked from commit 76e2a0dd05aa1a6fb3148c231d57cd2278ced9d2)

Daniel-Constantin Mierla authored on 03/11/2016 07:47:01
Showing 1 changed files
... ...
@@ -593,8 +593,7 @@ static inline int str_eq(const str *p, const char *q) {
593 593
 }
594 594
 
595 595
 static inline str str_prefix(const str *p, const char *q) {
596
-	str ret;
597
-	ret.s = NULL;
596
+	str ret = STR_NULL;
598 597
 	int l = strlen(q);
599 598
 	if (p->len < l)
600 599
 		return ret;