]> git.street.me.uk Git - andy/viking.git/blobdiff - src/gpspoint.c
[QA] Reusable function for freeing the waypoint image cache.
[andy/viking.git] / src / gpspoint.c
index 19bec4b3dffaa696ec824940cff392e6db10dd91..ab264ce605eddc5dac6ba7a3bd3787b111f4b6dc 100644 (file)
@@ -189,7 +189,7 @@ gboolean a_gpspoint_read_file(VikTrwLayer *trw, FILE *f, const gchar *dirpath )
       /* my addition: find first non-whitespace character. if the null, skip line. */
       while (*tag_start != '\0' && isspace(*tag_start))
         tag_start++;
-      if (tag_start == '\0')
+      if (*tag_start == '\0')
         break;
 
       if (*tag_start == '#')