summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-05-25 23:02:13 +0000
committerRoland McGrath <roland@redhat.com>1992-05-25 23:02:13 +0000
commitb4f6efcf698f1adc6fc59f3e544606cb6e63f586 (patch)
tree617570841a966ec2153580b761519a2017191721 /main.c
parentb3cc9ddd668b6fc520c280bfd4d5ad1473683f8b (diff)
downloadgunmake-b4f6efcf698f1adc6fc59f3e544606cb6e63f586.tar.gz
Formerly main.c.~45~
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: