summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--orc/orccodemem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/orc/orccodemem.c b/orc/orccodemem.c
index 2c93f77..7bb78d2 100644
--- a/orc/orccodemem.c
+++ b/orc/orccodemem.c
@@ -88,7 +88,7 @@ orc_code_chunk_split (OrcCodeChunk *chunk, int size)
newchunk->offset = chunk->offset + size;
newchunk->size = chunk->size - size;
newchunk->next = chunk->next;
- newchunk->prev = chunk->prev;
+ newchunk->prev = chunk;
chunk->size = size;
if (chunk->next) {