Explicitly set offset to 0 for http_file.

This commit is contained in:
Joris Vink 2016-07-27 16:40:41 +02:00
parent 46cee2ff46
commit 0b92afe53d
1 changed files with 1 additions and 0 deletions

View File

@ -1274,6 +1274,7 @@ multipart_file_add(struct http_request *req, struct kore_buf *in,
f = kore_malloc(sizeof(struct http_file));
f->req = req;
f->offset = 0;
f->length = len;
f->position = position;
f->name = kore_strdup(name);