diff --git a/core/import-csv.c b/core/import-csv.c index 8567f263e..b23b13005 100644 --- a/core/import-csv.c +++ b/core/import-csv.c @@ -178,7 +178,7 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str memset(tmpbuf, 0, sizeof(tmpbuf)); iter = strchr(iter, '|'); - if (iter && iter[1]) { + if (iter) { iter = iter + 1; iter_end = strchr(iter, '|'); @@ -203,7 +203,7 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str for (i = 0; i < 5 && iter; ++i) iter = strchr(iter + 1, '|'); - if (iter && iter + 1) { + if (iter) { iter = iter + 1; iter_end = strchr(iter, '|'); @@ -254,7 +254,7 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str for (i = 0; i < 5 && iter; ++i) iter = strchr(iter + 1, '|'); - if (iter && iter + 1) { + if (iter) { iter = iter + 1; iter_end = strchr(iter, '|');