From 4987f28ed248de44e5fc00f197012bed45514ca1 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 23 Sep 2019 09:46:31 +0200 Subject: Fix T70177: Crash when calling to_track_quat() without arguments --- source/blender/python/mathutils/mathutils_Vector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c index aa7cbadde14..87de0ff546e 100644 --- a/source/blender/python/mathutils/mathutils_Vector.c +++ b/source/blender/python/mathutils/mathutils_Vector.c @@ -691,7 +691,8 @@ PyDoc_STRVAR(Vector_to_track_quat_doc, static PyObject *Vector_to_track_quat(VectorObject *self, PyObject *args) { float vec[3], quat[4]; - const char *strack, *sup; + const char *strack = NULL; + const char *sup = NULL; short track = 2, up = 1; if (!PyArg_ParseTuple(args, "|ss:to_track_quat", &strack, &sup)) { -- cgit v1.2.3