diff options
-rw-r--r-- | core/import-csv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/import-csv.c b/core/import-csv.c index f1a55950f..d3f665111 100644 --- a/core/import-csv.c +++ b/core/import-csv.c @@ -561,7 +561,8 @@ int parse_txt_file(const char *filename, const char *csv) cur_cylinder_index++; lineptr = strstr(memtxt.buffer, "Dive started at"); - while (!empty_string(lineptr) && (lineptr = strchr(lineptr, '\n')) && ++lineptr) { + while (!empty_string(lineptr) && (lineptr = strchr(lineptr, '\n'))) { + ++lineptr; // Skip over '\n' key = next_mkvi_key(lineptr); if (!key) break; |