summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/draw.c b/draw.c
index ced51fb..c72eb6e 100644
--- a/draw.c
+++ b/draw.c
@@ -67,6 +67,12 @@ int main(int argc, char **argv){
g = get_groups(); //retrieve results of cfg_interp
g_count = get_gcount(g); //retrieve number of groups in g (only do this after removing empty groups)
+ //check that there are is at least one valid group
+ if(g_count == 0){
+ printf("Error: No Entries!\n");
+ exit(0);
+ }
+
initscr();
cbreak();
keypad(stdscr, true);