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