aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/calculer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/calculer.c b/src/calculer.c
index 34e2fa6..de2dcf8 100644
--- a/src/calculer.c
+++ b/src/calculer.c
@@ -140,6 +140,7 @@ main(int argc, char *argv[])
{
char *logpath = "./calculer.log";
char *disp_name = DISP_RAY;
+ struct disp *disp;
srand(time(NULL));
/* Store the prefix "YYYY-MM-DD" in LOGBUF. */
@@ -184,7 +185,8 @@ main(int argc, char *argv[])
}
logfile = fopen(logpath, "a");
- assert(logfile);
+ assert(logfile); /* TODO: handle non-fatal error properly */
+ disp = get_disp(disp_name);
while (1)
{