Skip to content

Commit

Permalink
Set buffer on dumping closure
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Mar 16, 2017
1 parent 54241b2 commit 6af2854
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared/gravity_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,10 @@ void gravity_value_dump (gravity_value_t v, char *buffer, uint16_t len) {
type = "FIBER";
snprintf(buffer, len, "(%s) %p", type, v.p);
value = buffer;
} else if (v.isa == gravity_class_closure) {
type = "CLOSURE";
snprintf(buffer, len, "(%s) %p", type, v.p);
value = buffer;
} else {
type = "N/A";
value = "N/A";
Expand Down

0 comments on commit 6af2854

Please sign in to comment.