resolve compiler warnings and remove executable from tracking

pull/153/head
kaleb-himes 2019-05-24 15:07:25 -04:00
parent d104e9e4f8
commit 1640acdff9
3 changed files with 7 additions and 4 deletions

View File

@ -282,7 +282,7 @@ int main(int argc, char** argv)
{
Aes aes;
byte* key; /* user entered key */
FILE* inFile;
FILE* inFile = NULL;
FILE* outFile = NULL;
const char* in;
@ -333,7 +333,7 @@ int main(int argc, char** argv)
printf("Must have both input and output file");
printf(": -i filename -o filename\n");
}
else if (ret == 0 && choice != 'n') {
else if (ret == 0 && choice != 'n' && inFile != NULL) {
key = malloc(size); /* sets size memory of key */
ret = NoEcho((char*)key, size);
if (choice == 'e')

View File

@ -268,11 +268,14 @@ exit:
int main(int argc, char** argv)
{
int ret = 0;
int fileLen;
int fileLen = 0;
int verifyFileLen = 0;
byte* fileBuf = NULL;
int verifyFileLen;
byte* verifyFileBuf = NULL;
const char* verify_file = NULL;
enum wc_SignatureType sig_type = WC_SIGNATURE_TYPE_NONE;
enum wc_HashType hash_type = WC_HASH_TYPE_NONE;

Binary file not shown.