From 9df1e4b1756da8893d30c5fe19bbef6a5cc0e026 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Thu, 2 Nov 2017 18:58:46 +0100 Subject: [PATCH] Fix compilation warning. --- src/ttysolitaire.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ttysolitaire.c b/src/ttysolitaire.c index bad57af..b7091a1 100644 --- a/src/ttysolitaire.c +++ b/src/ttysolitaire.c @@ -129,7 +129,9 @@ void version() { if (!(version_file = fopen("VERSION", "rb"))) { tty_solitaire_generic_error(errno, __FILE__, __LINE__); } - if (!fread(version_string, 1, 5, version_file)); + if (!fread(version_string, 1, 5, version_file)) { + // TODO: handle this. + } version_string[5] = '\0'; printf("%s\n", version_string); fclose(version_file);