about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-04-30 21:27:44 +0100
committerJames Booth <boothj5@gmail.com>2015-04-30 21:27:44 +0100
commit20555fcb3646d789206ede9a95881fed75fbc0b9 (patch)
tree4378c59bed8294a32df0e937a3da248809d34466 /src
parent0a6b76d6d36455a118d95b2815f1ab5f16707bff (diff)
downloadprofani-tty-20555fcb3646d789206ede9a95881fed75fbc0b9.tar.gz
Added assert to ui_switch_win
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 59144223..d4bac9b3 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -868,6 +868,7 @@ ui_win_has_unsaved_form(int num)
 gboolean
 ui_switch_win(ProfWin *win)
 {
+    assert(win != NULL);
     int num = wins_get_num(win);
     return ui_switch_win_num(num);
 }