]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/timezone.cxx
Make tsync part of libSimGearCore when building shared libraries
[simgear.git] / simgear / timing / timezone.cxx
index 3a8fa7fc91801a9d55f6161491e7a10022a6b351..26174c7538f513d3c27333ee6bb1b0d7215bf3d6 100644 (file)
@@ -143,7 +143,8 @@ SGTimeZoneContainer::SGTimeZoneContainer(const char *filename)
     errno = 0;
 
     while (1) {
-        (void) fgets(buffer, 256, infile);
+        if (0 == fgets(buffer, 256, infile))
+            break;
         if (feof(infile)) {
             break;
         }