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