mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
fix async readdir
This commit is contained in:
1 parent
0df8ffe472
commit
ee048aa3ab
1 file changed
+3
@@ -162,10 +162,13 @@ static void After(uv_fs_t *req) {
|
||||
for (int i = 0; i < nnames; i++) {
|
||||
Local<String> name = String::New(namebuf);
|
||||
names->Set(Integer::New(i), name);
|
||||
#ifndef NDEBUG
|
||||
namebuf += strlen(namebuf);
|
||||
assert(*namebuf == '\0');
|
||||
namebuf += 1;
|
||||
#else
|
||||
namebuf += strlen(namebuf) + 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
argv[1] = names;
|
||||
|
||||
Reference in new issue
Block a user