1. Kelvin Wong
  2. py-scrypt

Commits

Kelvin Wong  committed ea3e27e Draft

Fix warning: ‘hasherror’ may be used uninitialized in this function

  • Participants
  • Parent commits 6f4a890
  • Branches default

Comments (0)

Files changed (1)

File src/scrypt2.c

View file
 
     if ( r * p >= (1 << 30) || N <= 1 || (N & (N-1)) != 0) {
         paramerror = -1;
+        hasherror = 0;
     } else {
         paramerror = 0;
         hasherror = crypto_scrypt((uint8_t *) PyString_AsString((PyObject *) password), passwordlen,