Fix non-critical warning: unused result

This commit is contained in:
Grigory Ustinov 2017-11-01 21:28:38 +03:00
parent b234e7f116
commit f43152c420

View File

@ -129,7 +129,7 @@ void version() {
if (!(version_file = fopen("VERSION", "rb"))) {
tty_solitaire_generic_error(errno, __FILE__, __LINE__);
}
fread(version_string, 1, 5, version_file);
if (!fread(version_string, 1, 5, version_file));
version_string[5] = '\0';
printf("%s\n", version_string);
fclose(version_file);