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 2005-09-21 16:50:27 +00:00
parent f5ca9798df
commit eacec21ab5
1 changed files with 3 additions and 1 deletions

View File

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