diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-07-13 19:35:31 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-07-15 11:19:46 -0400 |
commit | 735ac5cb6596ac7219881a8be1b215825de9401b (patch) | |
tree | 5a3b83f81260e93ad9f863b94843c9409dbc7aa3 /common/collection | |
parent | 9689454cb2d3d3b3c9e02a32ab9db13f49e8d5a2 (diff) | |
download | sssd-735ac5cb6596ac7219881a8be1b215825de9401b.tar.gz sssd-735ac5cb6596ac7219881a8be1b215825de9401b.tar.xz sssd-735ac5cb6596ac7219881a8be1b215825de9401b.zip |
ELAPI First part of the interface
This is just a part of the interface,
a beginning. Most likely some of the functions
will be altered but it is a starting point.
For example in future there will be
a way to override some of the parts of the
default template using the application configuration file.
Removed obfuscation of the data types based on
discussion with Simo.
Diffstat (limited to 'common/collection')
-rw-r--r-- | common/collection/collection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/collection/collection.c b/common/collection/collection.c index 1e3fe5c3f..69475b048 100644 --- a/common/collection/collection.c +++ b/common/collection/collection.c @@ -384,6 +384,7 @@ int col_insert_item_into_current(struct collection_item *collection, current = parent->next; item->next = current->next; parent->next = item; + if (header->last == current) header->last = item; col_delete_item(current); header->count--; TRACE_FLOW_STRING("col_insert_item_into_current", "Dup overwrite exit"); @@ -397,6 +398,7 @@ int col_insert_item_into_current(struct collection_item *collection, current = parent->next; item->next = current->next; parent->next = item; + if (header->last == current) header->last = item; col_delete_item(current); header->count--; TRACE_FLOW_STRING("col_insert_item_into_current", "Dup overwrite exit"); |