diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-11-01 23:47:20 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-11-01 23:47:20 -0700 |
| commit | 156604bd07ee60faa323968c71627f1c701b473a (patch) | |
| tree | 58e4a7d367283bb4cee56da6d34b64f2e90118bc /src/core/aio.c | |
| parent | 5706608b3787935b0bcb115bb8fd899005e4ce65 (diff) | |
| download | nng-156604bd07ee60faa323968c71627f1c701b473a.tar.gz nng-156604bd07ee60faa323968c71627f1c701b473a.tar.bz2 nng-156604bd07ee60faa323968c71627f1c701b473a.zip | |
fixes #772 ineffectual assignment in aio_init
Diffstat (limited to 'src/core/aio.c')
| -rw-r--r-- | src/core/aio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 215d545c..b67b7467 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -124,10 +124,7 @@ nni_aio_init(nni_aio **aiop, nni_cb cb, void *arg) aio->a_timeout = NNG_DURATION_INFINITE; aio->a_iov = aio->a_iovinl; aio->a_niovalloc = 0; - if (arg == NULL) { - arg = aio; - } - *aiop = aio; + *aiop = aio; return (0); } |
