aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-03-08 13:43:39 +0100
committerThomas White <taw@bitwiz.org.uk>2018-03-08 13:43:39 +0100
commit2af0de620328c13e8dc9997bc95e694321409d96 (patch)
treecec5fcc0a60c088996c513aef5781a011dd2900c
parentb432a0ac4562b4ddc1a877d044fdd9490189699d (diff)
Don't open debugger if no frame is selected
-rw-r--r--src/debugger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debugger.c b/src/debugger.c
index cdf6caa..808c962 100644
--- a/src/debugger.c
+++ b/src/debugger.c
@@ -262,6 +262,9 @@ void open_debugger(struct frame *fr)
{
struct debugwindow *dbgw;
GtkWidget *scroll;
+
+ if ( fr == NULL ) return;
+
dbgw = calloc(1, sizeof(struct debugwindow));
if ( dbgw == NULL ) return;