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:
Patrick Monnerat 2022-09-17 14:09:07 +02:00 committed by Daniel Stenberg
parent 9eccc613a2
commit 7ca36f4956
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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},