Copy of CI from master to 2020
[alexxy/gromacs.git] / src / gromacs / fileio / matio.cpp
index dc223c6717f45b8a6222c81c62dbdae011ad2c05..cbb9c96b79614fa2c4363729e82bafdb5f51a758 100644 (file)
@@ -432,6 +432,7 @@ static t_matrix read_xpm_entry(FILE* in)
             line = line_buf;
         }
         bSetLine = TRUE;
+        GMX_RELEASE_ASSERT(line, "Need to have valid line to parse");
         if (strstr(line, "x-axis"))
         {
             line = std::strstr(line, "x-axis");