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