catch sodium_init() return

This commit is contained in:
TLINDEN
2015-11-15 17:02:51 +01:00
parent ab3ff3182e
commit f7aa9d7aaf
5 changed files with 8 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ int main() {
pw *have = NULL;
unsigned char nonce[32] = {1};
sodium_init();
if(sodium_init() == -1) return 1;
for(i=97; i<126; ++i) {
pass[0] = i;