mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
fix async readdir
This commit is contained in:
committed by
Ryan Dahl
parent
0df8ffe472
commit
ee048aa3ab
@@ -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