d74385
diff --git a/include/atlas_genparse.h b/include/atlas_genparse.h
d74385
index 909a38e..1e6d153 100644
d74385
--- a/include/atlas_genparse.h
d74385
+++ b/include/atlas_genparse.h
d74385
@@ -163,7 +163,8 @@ static int GetDoubleArr(char *str, int N, double *d)
d74385
       if (!str)
d74385
          break;
d74385
       str++;
d74385
-      assert(sscanf(str, "%le", d+i) == 1);
d74385
+      if (sscanf(str, "%le", d+i) != 1)
d74385
+	break;
d74385
       i++;
d74385
    }
d74385
    return(i);