packages/genxrdpattern/pointer-nullcheck.patch
2022-02-10 10:42:23 +01:00

12 lines
271 B
Diff

--- newmat6.cpp
+++ newmat6.cpp
@@ -424,7 +424,7 @@
{
if (&gm == this) { REPORT tag_val = -1; return; }
REPORT
- if (indx > 0) { delete [] indx; indx = 0; }
+ if (indx != 0) { delete [] indx; indx = 0; }
((CroutMatrix&)gm).get_aux(*this);
Eq(gm);
}