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