Skip to content

Commit

Permalink
fix rc_filter_duplicate initialization check
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Jan 7, 2019
1 parent 8bd4026 commit 2c83c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/math/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int rc_filter_alloc_from_arrays(rc_filter_t* f,double dt,double* num,int numlen,

int rc_filter_duplicate(rc_filter_t* f, rc_filter_t old)
{
if(unlikely(old.initialized)){
if(unlikely(!old.initialized)){
fprintf(stderr, "ERROR in rc_filter_duplicate, old filter not initialized\n");
return -1;
}
Expand Down

0 comments on commit 2c83c78

Please sign in to comment.