mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-10 16:31:18 +01:00
Initialize `output' in a more proper location.
Submitted by: roam
This commit is contained in:
parent
7b65fef03a
commit
68ed097b75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91676
@ -67,7 +67,7 @@ void encode __P((void));
|
||||
void base64_encode __P((void));
|
||||
static void usage __P((void));
|
||||
|
||||
FILE *output = stdout;
|
||||
FILE *output;
|
||||
int mode;
|
||||
char **av;
|
||||
|
||||
@ -123,7 +123,8 @@ main(argc, argv)
|
||||
output = fopen(outfile, "w+");
|
||||
if (output == NULL)
|
||||
err(1, "unable to open %s for output", outfile);
|
||||
}
|
||||
} else
|
||||
output = stdout;
|
||||
if (base64)
|
||||
base64_encode();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user