tool_formparse: fix variable may be used before its value is set

Warning by icc

Closes #9179
This commit is contained in:
Daniel Stenberg 2022-07-20 23:33:59 +02:00
parent 07535a4f87
commit 6b6fe4fec5
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -409,7 +409,7 @@ static int read_field_headers(struct OperationConfig *config,
size_t pos = 0;
bool incomment = FALSE;
int lineno = 1;
char hdrbuf[999]; /* Max. header length + 1. */
char hdrbuf[999] = ""; /* Max. header length + 1. */
for(;;) {
int c = getc(fp);