diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-29 15:55:11 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-29 15:55:11 +0200 |
| commit | cad89a1f9b9e36d7490c3f8cd1449082a1285050 (patch) | |
| tree | b2a1537a67b1c8f11fa936e0eeb559963685d2ad | |
| parent | 29aeb95a28d518944f1eb268f93a96cbb9dff7f2 (diff) | |
| download | cataract-cad89a1f9b9e36d7490c3f8cd1449082a1285050.tar.xz | |
Fix crasher when searching for next item
| -rw-r--r-- | src/generators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generators.c b/src/generators.c index a3d2585..59de1f4 100644 --- a/src/generators.c +++ b/src/generators.c @@ -593,7 +593,7 @@ write_html_image (TGallerySetup *setup, previous_item = g_ptr_array_index (parent_items->items, i); if (previous_item && previous_item->type != INDEX_ITEM_TYPE_PICTURE) previous_item = NULL; - for (i = item_index; item_index < parent_items->items->len && (next_item == NULL || next_item->type != INDEX_ITEM_TYPE_PICTURE); i++) + for (i = item_index; i < parent_items->items->len && (next_item == NULL || next_item->type != INDEX_ITEM_TYPE_PICTURE); i++) next_item = g_ptr_array_index (parent_items->items, i); if (next_item && next_item->type != INDEX_ITEM_TYPE_PICTURE) next_item = NULL; |
