aboutsummaryrefslogtreecommitdiff
path: root/src/io.cpp
diff options
context:
space:
mode:
authorPjotr Prins2018-01-26 10:57:14 +0000
committerPjotr Prins2018-01-26 10:57:14 +0000
commitb0d31fa2631622d09730c85b5ce3e82b4886dd45 (patch)
treec35879b1e77dfb546ae8c2abe7bc8ea8a058ef53 /src/io.cpp
parent3293f7e6456574272418b16f4a5ba22f60f8d67a (diff)
downloadpangemma-b0d31fa2631622d09730c85b5ce3e82b4886dd45.tar.gz
Always check input data for strtok - unless -no-check is used
Diffstat (limited to 'src/io.cpp')
-rw-r--r--src/io.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/io.cpp b/src/io.cpp
index d20b473..941bacf 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -707,6 +707,7 @@ bool ReadFile_geno(const string &file_geno, const set<string> &setSnps,
if (indicator_idv[i] == 0)
continue;
+ enforce_msg(ch_ptr,"Problem reading geno file");
if (strcmp(ch_ptr, "NA") == 0) {
gsl_vector_set(genotype_miss, c_idv, 1);
n_miss++;