Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

zero closure

  • Loading branch information...
commit 1c6cfd3c4831bbaa50e2ce87064624987d55085f 1 parent fde7404
@tj tj authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/Canvas.cc
View
1  src/Canvas.cc
@@ -188,6 +188,7 @@ Canvas::ToBuffer(const Arguments &args) {
// Async
if (args[0]->IsFunction()) {
closure_t *closure = (closure_t *) malloc(sizeof(closure_t));
+ memset(closure, 0, sizeof(closure));
closure->len = 0;
closure->canvas = canvas;
// TODO: only one callback fn in closure
Please sign in to comment.
Something went wrong with that request. Please try again.