mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'u/fanf2/werror-maybe-uninitialized' into 'master'
Appease -Werror=maybe-uninitialized before calling strtok_r() See merge request isc-projects/bind9!198
This commit is contained in:
commit
488ae9051e
2 changed files with 4 additions and 1 deletions
|
|
@ -3122,10 +3122,12 @@ render_xsl(const char *url, isc_httpdurl_t *urlinfo,
|
|||
const char *if_modified_since = "If-Modified-Since: ";
|
||||
_headers = strdup(headers);
|
||||
|
||||
saveptr = NULL;
|
||||
for (line = strtok_r(_headers, "\n", &saveptr);
|
||||
line;
|
||||
line = strtok_r(NULL, "\n", &saveptr)) {
|
||||
if (strncasecmp(line, if_modified_since, strlen(if_modified_since)) == 0) {
|
||||
if (strncasecmp(line, if_modified_since,
|
||||
strlen(if_modified_since)) == 0) {
|
||||
time_t t1, t2;
|
||||
line += strlen(if_modified_since);
|
||||
result = isc_time_parsehttptimestamp(line, &when);
|
||||
|
|
|
|||
|
|
@ -1070,6 +1070,7 @@ set_order(int family, int (**net_order)(const char *, int, struct addrinfo **,
|
|||
} else {
|
||||
order = getenv("NET_ORDER");
|
||||
found = 0;
|
||||
last = NULL;
|
||||
for (tok = strtok_r(order, ":", &last);
|
||||
tok;
|
||||
tok = strtok_r(NULL, ":", &last))
|
||||
|
|
|
|||
Loading…
Reference in a new issue