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