cosmetics
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@536 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.2
parent
8b528f086f
commit
cf002f6889
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue