Initialize `output' in a more proper location.

Submitted by:	roam
This commit is contained in:
Mike Barcroft 2002-03-05 10:58:06 +00:00
parent 7b65fef03a
commit 68ed097b75
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91676

View file

@ -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