mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00: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));
|
void base64_encode __P((void));
|
||||||
static void usage __P((void));
|
static void usage __P((void));
|
||||||
|
|
||||||
FILE *output = stdout;
|
FILE *output;
|
||||||
int mode;
|
int mode;
|
||||||
char **av;
|
char **av;
|
||||||
|
|
||||||
|
@ -123,7 +123,8 @@ main(argc, argv)
|
||||||
output = fopen(outfile, "w+");
|
output = fopen(outfile, "w+");
|
||||||
if (output == NULL)
|
if (output == NULL)
|
||||||
err(1, "unable to open %s for output", outfile);
|
err(1, "unable to open %s for output", outfile);
|
||||||
}
|
} else
|
||||||
|
output = stdout;
|
||||||
if (base64)
|
if (base64)
|
||||||
base64_encode();
|
base64_encode();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue