瀏覽代碼

Fix warning: uninitialized variable

bel 8 年之前
父節點
當前提交
cb9c3eb68b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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