cosmetics

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@536 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 2005-08-15 09:48:58 +00:00
parent 8b528f086f
commit cf002f6889
1 changed files with 2 additions and 2 deletions

View File

@ -149,11 +149,11 @@ data_unset *array_get_unused_element(array *a, data_type_t t) {
/* replace or insert data, return the old one with the same key */
data_unset *array_replace(array *a, data_unset *du) {
int ndx;
if (-1 == (ndx = array_get_index(a, du->key->ptr, du->key->used, NULL))) {
array_insert_unique(a, du);
return NULL;
}
else {
} else {
data_unset *old = a->data[ndx];
a->data[ndx] = du;
return old;