From 142a70292be9203f73b488570eeee92786eb82d1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 4 Sep 2011 16:09:26 -0700 Subject: [PATCH] unix: fix fs_chmod --- src/unix/core.c | 1 - test/test-fs.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/core.c b/src/unix/core.c index a3529776..a016d1b3 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -323,7 +323,6 @@ int64_t uv_now(uv_loop_t* loop) { void uv__req_init(uv_req_t* req) { /* loop->counters.req_init++; */ req->type = UV_UNKNOWN_REQ; - req->data = NULL; } diff --git a/test/test-fs.c b/test/test-fs.c index 032128f2..1f14abff 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -760,6 +760,7 @@ TEST_IMPL(fs_chmod) { ASSERT(r == 0); uv_run(loop); ASSERT(chmod_cb_count == 1); + chmod_cb_count = 0; /* reset for the next test */ #endif /* async chmod */