buffer.c: Delete pointless initialization.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Oct 2019 10:27:12 +0000 (11:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
The variable `cobj' will be set by `PyArg_ParseTuple' anyway.

buffer.c

index 59eaec6..245ce8f 100644 (file)
--- a/buffer.c
+++ b/buffer.c
@@ -184,7 +184,7 @@ end:
 
 static PyObject *rbmeth_getecptraw(PyObject *me, PyObject *arg)
 {
-  PyTypeObject *cobj = ecpt_pytype;
+  PyTypeObject *cobj;
   ec pt = EC_INIT;
   if (!PyArg_ParseTuple(arg, "O!:getecptraw", eccurve_pytype, &cobj))
     goto end;