Skip to content

Commit 8cf503c

Browse files
committed
Merge branch 'patch-1' of https://github.com/chengli-rutgers/fio into master
* 'patch-1' of https://github.com/chengli-rutgers/fio: getopt_long: avoid variable global initialization
2 parents 60c5221 + b2df42d commit 8cf503c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oslib/getopt_long.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
#include "getopt.h"
1818

19-
char *optarg = NULL;
20-
int optind = 0, opterr = 0, optopt = 0;
19+
char *optarg;
20+
int optind, opterr, optopt;
2121

2222
static struct getopt_private_state {
2323
const char *optptr;

0 commit comments

Comments
 (0)