Commits

Kelvin Wong committed 0ed1919 Draft

Fix warning: ‘hasherror’ may be used uninitialized in this function for Py3.2

  • Participants
  • Parent commits ea3e27e

Comments (0)

Files changed (1)

File src/scrypt3.c

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