Fixed a segfault in unittests
@@ -126,9 +126,6 @@ def write_mat_sparse(f, A, name, *args):
for arg in args:
f.write("%s->" % arg)
- if min(m,n) == 0:
- f.write("%s->p = OSQP_NULL;\n" % name)
- else:
f.write("%s->" % name)
f.write("p = c_malloc((%i + 1) * sizeof(c_int));\n" % n)
for i in range(A.shape[1] + 1):
