diff --git a/src/numtheory/cl_nt_sqrtmodp.cc b/src/numtheory/cl_nt_sqrtmodp.cc
index 7b53740..36b056e 100644
--- a/src/numtheory/cl_nt_sqrtmodp.cc
+++ b/src/numtheory/cl_nt_sqrtmodp.cc
@@ -107,7 +107,7 @@ static const sqrt_mod_p_t cantor_zassenhaus_sqrt (const cl_modint_ring& R, const
 			int gcd_degree;
 			cl_MI solution;
 			// Constructors.
-			gcd_result (cl_composite_condition* c) : condition (c) {}
+			gcd_result (cl_composite_condition* c) : condition (c), gcd_degree(0) {}
 			gcd_result (int deg) : condition (NULL), gcd_degree (deg) {}
 			gcd_result (int deg, const cl_MI& sol) : condition (NULL), gcd_degree (deg), solution (sol) {}
 		};
