aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorben2019-05-28 17:08:37 +0200
committerben2019-05-28 17:08:37 +0200
commite0f4163c7e783bca7a38a344a8201c4889eccdb7 (patch)
tree5820b795c9bf7b9e16e3aaea04ac435987ea8265 /src/main.c
parentc814f3c1c2970773ebc10876882776bd10febf0f (diff)
downloadinexact-e0f4163c7e783bca7a38a344a8201c4889eccdb7.tar.gz
inexact-e0f4163c7e783bca7a38a344a8201c4889eccdb7.tar.bz2
inexact-e0f4163c7e783bca7a38a344a8201c4889eccdb7.tar.xz
[FIX] Windows and Mac OS X compatibility.beta_1.02
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index dd68079..53f2844 100644
--- a/src/main.c
+++ b/src/main.c
@@ -434,6 +434,7 @@ int main(int argc, char *argv[]) {
unsigned char *secretkey = malloc(32);
unsigned char *publickey = malloc(32);
unsigned char *salt = malloc(32);
+
if (secretkey == NULL || publickey == NULL || salt == NULL) {
printf("Malloc failed\n");
exitcode = 1;