aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-16 15:16:46 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2017-07-16 15:16:46 +0200
commit38faf041cf3b943b105ec469915dc03c58b272f1 (patch)
tree107828f85c2d6ce74c4811afee80cdc5a3af2fd4 /tests
parentfb3b0f25ef9b20b40e48d2a507968a975ef09bb9 (diff)
rtspd: fix GCC warning after MSVC warning fix
Older GCC warns: /tests/server/rtspd.c:1194:10: warning: missing braces around initializer [-Wmissing-braces] Fix this by using memset instead of an initializer.
Diffstat (limited to 'tests')
-rw-r--r--tests/server/rtspd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/server/rtspd.c b/tests/server/rtspd.c
index 07df6f5b2..120d65d52 100644
--- a/tests/server/rtspd.c
+++ b/tests/server/rtspd.c
@@ -1191,12 +1191,14 @@ int main(int argc, char *argv[])
int flag;
unsigned short port = DEFAULT_PORT;
const char *pidname = ".rtsp.pid";
- struct httprequest req = {0};
+ struct httprequest req;
int rc;
int error;
int arg=1;
long pid;
+ memset(&req, 0, sizeof(req));
+
while(argc>arg) {
if(!strcmp("--version", argv[arg])) {
printf("rtspd IPv4%s"