mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
lib1597: make it C89-compliant again
Automatic variable addresses cannot be used in an initialisation
aggregate.
Follow-up to 9d51329
Reported-by: Daniel Stenberg
Fixes: #9524
Closes #9525
This commit is contained in:
parent
9eccc613a2
commit
7ca36f4956
@ -38,18 +38,18 @@ int test(char *URL)
|
||||
CURL *curl = NULL;
|
||||
int res = 0;
|
||||
CURLcode result = CURLE_OK;
|
||||
CURLcode ok = CURLE_OK;
|
||||
CURLcode bad = CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
CURLcode unsup = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
CURLcode httpcode = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
CURLcode httpscode = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
curl_version_info_data *curlinfo;
|
||||
const char *const *proto;
|
||||
char protolist[1024];
|
||||
int n;
|
||||
int i;
|
||||
static CURLcode ok = CURLE_OK;
|
||||
static CURLcode bad = CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
static CURLcode unsup = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
static CURLcode httpcode = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
static CURLcode httpscode = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
static char protolist[1024];
|
||||
|
||||
struct pair prots[] = {
|
||||
static const struct pair prots[] = {
|
||||
{"goobar", &unsup},
|
||||
{"http ", &unsup},
|
||||
{" http", &unsup},
|
||||
|
Loading…
Reference in New Issue
Block a user