mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
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:
parent
fb3b0f25ef
commit
38faf041cf
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user