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