Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
breakpoints array would be nil if a breakpoint is added before byebug is
started.
  • Loading branch information
David Rodríguez de Dios committed Aug 7, 2014
1 parent 654f4b3 commit 5c22ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/byebug/byebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ bb_set_post_mortem(VALUE self, VALUE value)
static VALUE
bb_breakpoints(VALUE self)
{
return breakpoints;
return NIL_P(breakpoints) ? rb_ary_new() : breakpoints;
}

/*
Expand Down

0 comments on commit 5c22ef3

Please sign in to comment.