summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/streams.c b/src/testing/streams.c
index d718ab76..33c70c00 100644
--- a/src/testing/streams.c
+++ b/src/testing/streams.c
@@ -80,7 +80,7 @@ stream_xfr_alloc(nng_stream *s, void (*submit)(nng_stream *, nng_aio *),
{
stream_xfr_t *x;
- if ((x = nng_alloc(size)) == NULL) {
+ if ((x = nng_alloc(sizeof(*x))) == NULL) {
return (NULL);
}
if (nng_aio_alloc(&x->upper_aio, NULL, NULL) != 0) {