浏览代码

rtpengine: init all struct to get rid of compile warnings

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
76e2a0dd05
共有 1 个文件被更改,包括 1 次插入2 次删除
  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) {
-	str ret;
-	ret.s = NULL;
+	str ret = STR_NULL;
 	int l = strlen(q);
 	if (p->len < l)
 		return ret;