Browse Source

replace i by j to fix a segfault in the error-msg and improved the error-msg (fixed #281)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@724 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.6
Jan Kneschke 16 years ago
parent
commit
eacec21ab5
  1. 4
      src/configfile-glue.c

4
src/configfile-glue.c

@ -53,7 +53,9 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t
array_insert_unique(cv[i].destination, (data_unset *)ds);
} else {
log_error_write(srv, __FILE__, __LINE__, "sssbs", "unexpected type for key: ", cv[i].key, "[", da->value->data[i]->key, "](string)");
log_error_write(srv, __FILE__, __LINE__, "sssd",
"the key of and array can only be a string or a integer, variable:",
cv[i].key, "type:", da->value->data[j]->type);
return -1;
}

Loading…
Cancel
Save