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.
This commit is contained in:
Marcel Raad 2017-07-16 15:16:46 +02:00
parent fb3b0f25ef
commit 38faf041cf
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02
1 changed files with 3 additions and 1 deletions

View File

@ -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"