rstream: Initialize 'rstream' field in RBuffer class

This field is used in a conditional jump, so this initialization is fixing a
bug.
This commit is contained in:
Thiago de Arruda
2014-10-19 17:39:53 -03:00
parent fb34028c1e
commit 38aa222658

View File

@@ -47,6 +47,7 @@ RBuffer *rbuffer_new(size_t capacity)
rv->data = xmalloc(capacity);
rv->capacity = capacity;
rv->rpos = rv->wpos = 0;
rv->rstream = NULL;
return rv;
}