Skip to content

Commit

Permalink
Updating regroup.c : HOTFIX from Jul_12_2017_...
Browse files Browse the repository at this point in the history
  • Loading branch information
noe committed Jul 15, 2017
1 parent d0064e7 commit 2c3c84a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/regroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,11 @@ MA * main_regroup(MA * first_MA, Feature *feature) {
prev_MA->next = current_MA;
} else {
_WARNING("main_regroup() : prev_MA undefined"); /* FIXME : this test was not here before */
feature->last_MA = prev_MA = current_MA; /* FIXME : dangerous on the first tuple, but the first tuple will never be deleted, even if grouped (extended ?) */
if ( feature->last_MA != feature->first_MA) {
feature->last_MA = prev_MA = current_MA; /* FIXME : dangerous on the first tuple, but the first tuple will never be deleted, even if grouped (extended ?) */
} else {
feature->first_MA = feature->last_MA = prev_MA = current_MA; /* FIXME : this is a Hotfix */
}
}
FREE(to_free_MA,sizeof(MA));
} else {
Expand Down

0 comments on commit 2c3c84a

Please sign in to comment.