Skip to content

Commit 35fd6b0

Browse files
committed
scryptenc_print_error.c: add a "default" for safety
We should never reach that "default", but that doesn't mean that it'll never happen.
1 parent 2bbd6dc commit 35fd6b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/scryptenc/scryptenc_print_error.c

+3
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@ scryptenc_print_error(int rc, const char * infilename,
7070
case SCRYPT_EPARAM:
7171
warn0("Error in explicit parameters");
7272
break;
73+
default:
74+
warn0("Programmer error: unrecognized scrypt error");
75+
break;
7376
}
7477
}

0 commit comments

Comments
 (0)