summaryrefslogtreecommitdiff
path: root/src/erasurecode_preprocessing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/erasurecode_preprocessing.c')
-rw-r--r--src/erasurecode_preprocessing.c2
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++;
}