From 03fc9e3c264b1b5d62af702cf755a8008469fe13 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Mon, 30 Mar 2015 21:57:12 +0300 Subject: Fix a bug in detecting CSV file content NL should be set only if there is an empty line in the input file. That way the return if no empty line exists (simplistic test for Seabear CSV file) makes more sense. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index bf62a9590..03eb41c8d 100644 --- a/file.c +++ b/file.c @@ -957,9 +957,9 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp while ((ptr = strstr(ptr, "\n\n")) != NULL) { ptr_old = ptr; ptr += 1; + NL = "\n"; } ptr_old += 2; - NL = "\n"; } else ptr_old += 4; -- cgit v1.2.3-70-g09d2