Fix T70177: Crash when calling to_track_quat() without arguments

This commit is contained in:
2019-09-23 09:46:31 +02:00
parent 73a6fcfa80
commit 4987f28ed2

View File

@@ -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)) {