summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 81dbfdd..e0a274a 100644
--- a/main.c
+++ b/main.c
@@ -1039,7 +1039,8 @@ decode_switches (argc, argv)
{
long_options[i].name = (switches[i].long_name == 0 ? "" :
switches[i].long_name);
- *p++ = switches[i].c;
+ long_options[i].flag = 0;
+ *p++ = long_options[i].val = switches[i].c;
switch (switches[i].type)
{
case flag: