set cb_extra to NULL when req is allocated

This commit is contained in:
Joris Vink 2013-08-14 15:15:18 +02:00
parent 8d2327570c
commit 34f6d088fa
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ http_request_new(struct connection *c, struct spdy_stream *s, char *host,
req->owner = c;
req->status = 0;
req->stream = s;
req->cb_extra = NULL;
req->post_data = NULL;
kore_strlcpy(req->host, host, sizeof(req->host));
kore_strlcpy(req->path, path, sizeof(req->path));