Skip to content

Commit 9399402

Browse files
committed
Declare stream variable
1 parent 4e67e7f commit 9399402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ FS.staticInit();
10661066
FS.truncateCommon(node, undefined, len, false);
10671067
},
10681068
ftruncate(fd, len) {
1069-
stream = FS.getStreamChecked(fd);
1069+
var stream = FS.getStreamChecked(fd);
10701070
if (len < 0 || (stream.flags & {{{ cDefs.O_ACCMODE }}}) === {{{ cDefs.O_RDONLY}}}) {
10711071
throw new FS.ErrnoError({{{ cDefs.EINVAL }}});
10721072
}

0 commit comments

Comments
 (0)