diff options
-rw-r--r-- | src/erasurecode_preprocessing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasurecode_preprocessing.c b/src/erasurecode_preprocessing.c index e23b028..06fd1cc 100644 --- a/src/erasurecode_preprocessing.c +++ b/src/erasurecode_preprocessing.c @@ -323,7 +323,7 @@ int fragments_to_string(int k, int m, continue; } else { /* Make sure we account for duplicates */ - if (NULL != fragments[index]) { + if (NULL == data[index]) { data[index] = fragments[i]; num_data++; } |