summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-13 21:57:12 +0000
committerpeter <peter@FreeBSD.org>2001-08-13 21:57:12 +0000
commit7e27631a25e657b0d32dae3e4a604e068c35d801 (patch)
tree09d757742bfed6b8b9c7b454465cc7d2d07d53c4
parent373ef9952e0a3257762282ff84c6c19e8c04b444 (diff)
downloadFreeBSD-src-7e27631a25e657b0d32dae3e4a604e068c35d801.zip
FreeBSD-src-7e27631a25e657b0d32dae3e4a604e068c35d801.tar.gz
Initialize fp in main()
-rw-r--r--usr.bin/mklocale/yacc.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index dcdef34..7ad1d37 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -183,7 +183,7 @@ map : LBRK RUNE RUNE RBRK
%%
int debug = 0;
-FILE *fp = stdout;
+FILE *fp;
main(ac, av)
int ac;
@@ -193,6 +193,7 @@ main(ac, av)
extern char *optarg;
extern int optind;
+ fp = stdout;
while ((x = getopt(ac, av, "do:")) != EOF) {
switch(x) {
OpenPOWER on IntegriCloud