From 0c7cf47eb9c16f6893efaf72a13199d0a8de4de9 Mon Sep 17 00:00:00 2001 From: Michel Breyer Date: Tue, 13 Jun 2017 17:24:35 +0200 Subject: [PATCH] fix uninitialized erp in pybullet_setPhysicsEngineParameter --- examples/pybullet/pybullet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index f7e5b0d82..d87d04efd 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -763,7 +763,7 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar int maxNumCmdPer1ms = -2; int enableFileCaching = -1; double restitutionVelocityThreshold=-1; - double erp; + double erp = -1; double contactERP = -1; double frictionERP = -1; b3PhysicsClientHandle sm = 0;