Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

FIX: VS2008 compile error #1

Merged
merged 1 commit into from

2 participants

Samuel Doğan Aydın
Samuel

password_copy and salt_copy have to be declared before they can be used

Samuel hleumas FIX: VS2008 compile error
password_copy and salt_copy has to be declared before they can be used
e9949fb
Doğan Aydın doganaydin merged commit 7956c3a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 6, 2012
  1. Samuel

    FIX: VS2008 compile error

    hleumas authored
    password_copy and salt_copy has to be declared before they can be used
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 bcrypt/bcrypt_python.c
6 bcrypt/bcrypt_python.c
View
@@ -69,13 +69,15 @@ bcrypt_hashpw(PyObject *self, PyObject *args, PyObject *kw_args)
static char *keywords[] = { "password", "salt", NULL };
char *password = NULL, *salt = NULL;
char *ret;
+ char *password_copy;
+ char *salt_copy;
if (!PyArg_ParseTupleAndKeywords(args, kw_args, "ss:hashpw", keywords,
&password, &salt))
return NULL;
- char *password_copy = strdup(password);
- char *salt_copy = strdup(salt);
+ password_copy = strdup(password);
+ salt_copy = strdup(salt);
Py_BEGIN_ALLOW_THREADS;
ret = pybc_bcrypt(password_copy, salt_copy);
Something went wrong with that request. Please try again.