Commits

Remi Collet  committed 426b590

fix build warning [-Wmaybe-uninitialized]

  • Participants
  • Parent commits 8dcea83

Comments (0)

Files changed (2)

File classes/http_connection.c

 	zval                     *zbase;
 	php_event_base_t         *b;
 	zval                     *zdns_base   = NULL;
-	php_event_dns_base_t     *dnsb;
+	php_event_dns_base_t     *dnsb = NULL;
 	char                     *address;
 	int                       address_len;
 	long                      port;

File classes/http_request.c

 	if (zbuf) {
 		PHP_EVENT_FETCH_BUFFER(b, zbuf);
 		PHP_EVENT_ASSERT(b->buf);
+		evhttp_send_reply_chunk(http_req->ptr, b->buf);
 	}
-
-	evhttp_send_reply_chunk(http_req->ptr, b->buf);
 }
 /* }}} */