pomodoro

A simple pomodoro timer
git clone git://nocebo.space/pomodoro
Log | Files | Refs | LICENSE

commit 04bb8ac6664a53c5ac4fe0c9d1f2273e02905c8e
parent f26de94210d313b434b04b1a2085c078488e00a1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  9 Dec 2017 14:21:43 +0100

check if logfile can be opened

Diffstat:
pomodoro.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pomodoro.c b/pomodoro.c @@ -49,7 +49,8 @@ main(int argc, char **argv) break_period = 15; interactive_mode = TRUE; pomodoro_period = 25; - fp = fopen(log_file, "a"); + if (!(fp = fopen(log_file, "a"))) + err(1, "fopen"); str = "b:p:v"; while ((ch = getopt(argc, argv, str)) != -1) {