Move declarations to the beginning of the block

pull/573/head
Hosam Elkoulak 2026-06-16 17:26:27 +02:00
parent 7727575e95
commit 7744b613d7
1 changed files with 8 additions and 9 deletions

View File

@ -453,6 +453,14 @@ int NoEcho(char* password)
int main(int argc, char** argv)
{
int ret = ERROR; /* return value */
const char* in;
int option; /* choice of how to run program */
int inCheck = 0;
int outCheck = 0;
char choice = 'n';
wc_AsconCtx* ctx = (wc_AsconCtx*) malloc(sizeof(wc_AsconCtx));
if (ctx == NULL) {
printf("Memory allocation for ctx failed.\n");
@ -468,15 +476,6 @@ int main(int argc, char** argv)
ctx->outFile = NULL;
const char* in;
int option; /* choice of how to run program */
int inCheck = 0;
int outCheck = 0;
char choice = 'n';
while ((option = getopt(argc, argv, "dei:o:")) != -1) {
switch (option) {
case 'd': /* if entered decrypt */