diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-09-23 10:46:31 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-09-23 10:46:31 +0300 |
commit | 4987f28ed248de44e5fc00f197012bed45514ca1 (patch) | |
tree | 9124ee9086e78956f029fd3143fd09c1e623b5b6 /source/blender/python/mathutils/mathutils_Vector.c | |
parent | 73a6fcfa80020615f081b75aeb6a6ed90405097a (diff) |
Fix T70177: Crash when calling to_track_quat() without arguments
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Vector.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils_Vector.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) { |