diff options
| author | QXSoftware <lh563566994@126.com> | 2018-09-09 21:21:40 +0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-09-09 13:19:15 -0400 |
| commit | d347548816885c866e93e3ebab96f2223d93419c (patch) | |
| tree | d7db8769dc7464557d20c10b58edd9136921b85c | |
| parent | 001c704f95237bb7e5deb9d1f83e99f440e474df (diff) | |
| download | nng-d347548816885c866e93e3ebab96f2223d93419c.tar.gz nng-d347548816885c866e93e3ebab96f2223d93419c.tar.bz2 nng-d347548816885c866e93e3ebab96f2223d93419c.zip | |
remove redundant zero memset
| -rw-r--r-- | src/core/aio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index 15abfe8d..215d545c 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -116,7 +116,6 @@ nni_aio_init(nni_aio **aiop, nni_cb cb, void *arg) if ((aio = NNI_ALLOC_STRUCT(aio)) == NULL) { return (NNG_ENOMEM); } - memset(aio, 0, sizeof(*aio)); if ((rv = nni_task_init(&aio->a_task, NULL, cb, arg)) != 0) { NNI_FREE_STRUCT(aio); return (rv); |
