summaryrefslogtreecommitdiffstats
path: root/tools/mpicalc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mpicalc.c')
-rw-r--r--tools/mpicalc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mpicalc.c b/tools/mpicalc.c
index 0e2980587..3d7ae37ca 100644
--- a/tools/mpicalc.c
+++ b/tools/mpicalc.c
@@ -211,12 +211,16 @@ main(int argc, char **argv)
{
static ARGPARSE_OPTS opts[] = {
{0} };
- ARGPARSE_ARGS pargs = { &argc, &argv, 0 };
+ ARGPARSE_ARGS pargs;
int i, c;
int state = 0;
char strbuf[1000];
int stridx=0;
+ pargs.argc = &argc;
+ pargs.argv = &argv;
+ pargs.flags = 0;
+
i18n_init();
while( arg_parse( &pargs, opts) ) {
switch( pargs.r_opt ) {