Explorar o código

Fix warning: uninitialized variable

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
cb9c3eb68b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -4297,7 +4297,7 @@ push_all(struct mg_context *ctx,
 static int
 pull(FILE *fp, struct mg_connection *conn, char *buf, int len, double timeout)
 {
-	int nread, err;
+	int nread, err = 0;
 	struct timespec start, now;
 
 #ifdef _WIN32