diff options
author | Thomas White <taw@bitwiz.org.uk> | 2018-03-08 13:43:39 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2018-03-08 13:43:39 +0100 |
commit | 2af0de620328c13e8dc9997bc95e694321409d96 (patch) | |
tree | cec5fcc0a60c088996c513aef5781a011dd2900c | |
parent | b432a0ac4562b4ddc1a877d044fdd9490189699d (diff) |
Don't open debugger if no frame is selected
-rw-r--r-- | src/debugger.c | 3 |
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; |