Fixes:
```
./lib/url.c:178:56: warning: use of an empty initializer is a C2x extension [-Wc2x-extensions]
178 | static const struct Curl_handler * const protocols[] = {
| ^
./lib/url.c:178:56: warning: zero size arrays are an extension [-Wzero-length-array]
```
Closes #12344
#ifndef CURL_DISABLE_DICT
&Curl_handler_dict,
#endif
+
+ NULL
};
void Curl_freeset(struct Curl_easy *data)
size_t i;
/* Scan protocol handler table and match against 'scheme'. The handler may
be changed later when the protocol specific setup function is called. */
- for(i = 0; i < ARRAYSIZE(protocols); ++i)
+ for(i = 0; i < ARRAYSIZE(protocols) - 1; ++i)
if(strncasecompare(protocols[i]->scheme, scheme, len) &&
!protocols[i]->scheme[len])
/* Protocol found in table. */