Unverified Commit 38faf041 authored by Marcel Raad's avatar Marcel Raad
Browse files

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.
parent fb3b0f25
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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"