mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
tool_formparse: fix variable may be used before its value is set
Warning by icc Closes #9179
This commit is contained in:
parent
07535a4f87
commit
6b6fe4fec5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user