From 0fbaea09f98c737e2e92cf71d44cc4ada8c91258 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 16 Jan 2020 21:13:55 -0800 Subject: inproc can use msg_header_clear to save a branch. --- src/transport/inproc/inproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index 9aef40a5..ffc6f002 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -1,5 +1,5 @@ // -// Copyright 2019 Staysail Systems, Inc. +// Copyright 2020 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -172,7 +172,7 @@ inproc_pipe_send(void *arg, nni_aio *aio) nni_aio_finish(aio, rv, nni_aio_count(aio)); return; } - nni_msg_header_chop(msg, l); + nni_msg_header_clear(msg); nni_msgq_aio_put(pipe->wq, aio); } -- cgit v1.2.3-70-g09d2