summaryrefslogtreecommitdiffstats
path: root/core/import-csv.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/import-csv.c')
-rw-r--r--core/import-csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index 347ef7896..f1a55950f 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -561,7 +561,7 @@ int parse_txt_file(const char *filename, const char *csv)
cur_cylinder_index++;
lineptr = strstr(memtxt.buffer, "Dive started at");
- while (lineptr && *lineptr && (lineptr = strchr(lineptr, '\n')) && ++lineptr) {
+ while (!empty_string(lineptr) && (lineptr = strchr(lineptr, '\n')) && ++lineptr) {
key = next_mkvi_key(lineptr);
if (!key)
break;