diff options
| author | Jean-Paul Calderone <exarkun@divmod.com> | 2009-07-24 21:15:30 -0400 |
|---|---|---|
| committer | Jean-Paul Calderone <exarkun@divmod.com> | 2009-07-24 21:15:30 -0400 |
| commit | 499fa1ddc857ce8debf2ea98428e554b26a82d63 (patch) | |
| tree | c4d640bb15bff88d783aae1a1eefabc7eadf4fd7 /src | |
| parent | e58415f702b7884b3597ea7b1e20459322ef1be5 (diff) | |
| download | pyopenssl-499fa1ddc857ce8debf2ea98428e554b26a82d63.tar.gz | |
move a variable declaration to the top
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/pkcs12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/pkcs12.c b/src/crypto/pkcs12.c index 27a49fe..f93b3c0 100644 --- a/src/crypto/pkcs12.c +++ b/src/crypto/pkcs12.c @@ -137,6 +137,7 @@ Replace or set the CA certificates withing the PKCS12 object.\n\ static PyObject * crypto_PKCS12_set_ca_certificates(crypto_PKCS12Obj *self, PyObject *args, PyObject *keywds) { + PyObject *obj; PyObject *cacerts; static char *kwlist[] = {"cacerts", NULL}; int i, len; /* Py_ssize_t for Python 2.5+ */ @@ -154,7 +155,6 @@ crypto_PKCS12_set_ca_certificates(crypto_PKCS12Obj *self, PyObject *args, PyObje } /* Check is's a simple list filled only with X509 objects. */ for(i = 0;i < len;i++) { /* For each CA cert */ - PyObject *obj; obj = PySequence_GetItem(cacerts, i); if(obj == NULL) { break; |
