summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-01 22:31:48 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-02 00:12:56 +0100
commit2f36b781966dafa6931bdb52402903006edabb69 (patch)
treebf2afd8cea1296d0b24d31b76f16a6d5fdfd315e /src
parent809fe8c8e6f28c87f48e6629560a2b52a148a8a7 (diff)
Missing return value check.
Diffstat (limited to 'src')
-rw-r--r--src/language_tag.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/language_tag.cc b/src/language_tag.cc
index e3f7b9bf..9708385b 100644
--- a/src/language_tag.cc
+++ b/src/language_tag.cc
@@ -449,7 +449,7 @@ load_language_tag_list (boost::filesystem::path tags_directory, string name, vec
}
string a = buffer;
trim (a);
- fgets (buffer, sizeof(buffer), f);
+ r = fgets (buffer, sizeof(buffer), f);
if (r == 0) {
fclose (f);
throw FileError ("Bad tags file", tags_directory / name, -1);