Zero-initialize structure to avoid returning undefined
The compiler will otherwise complain that we are returning undefined data. There is no way for the client code to know whether this was the case.
This commit is contained in:
1 parent
33173396f5
commit
002e22b9ec
1 file changed
+1
-1
@@ -56,7 +56,7 @@ namespace Opm
|
||||
const_cast<double*>(sa)
|
||||
};
|
||||
call_UMFPACK(&A, rhs, solution);
|
||||
LinearSolverReport rep;
|
||||
LinearSolverReport rep = {0};
|
||||
rep.converged = true;
|
||||
return rep;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user