Skip to content

Commit

Permalink
ignore null nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Sep 24, 2012
1 parent bde6a68 commit 77ae3e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/rblineprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ profiler_hook(rb_event_t event, NODE *node, VALUE self, ID mid, VALUE klass)
{
sourcefile_t *sourcefile = NULL;

if (!node) return;

char *file = node->nd_file;
long line = nd_line(node);

Expand Down

0 comments on commit 77ae3e2

Please sign in to comment.