diff options
Diffstat (limited to 'content/fetchers/data.c')
-rw-r--r-- | content/fetchers/data.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c index fdcfe647b..d41c4e8d9 100644 --- a/content/fetchers/data.c +++ b/content/fetchers/data.c @@ -86,10 +86,7 @@ static void fetch_data_send_header(struct fetch_data_context *ctx, const char *fmt, ...) { char header[64]; - fetch_msg msg = { - .type = FETCH_HEADER, - .data.header_or_data.buf = (const uint8_t *) header, - }; + fetch_msg msg; va_list ap; int len; @@ -101,7 +98,9 @@ static void fetch_data_send_header(struct fetch_data_context *ctx, return; } + msg.type = FETCH_HEADER; msg.data.header_or_data.len = len; + msg.data.header_or_data.buf = (const uint8_t *)header; fetch_data_send_callback(&msg, ctx); } |