summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralgernon <algernon>2001-02-15 17:35:03 +0000
committeralgernon <algernon>2001-02-15 17:35:03 +0000
commit4f1136a795945a583477e8e1450af83fd5fa510e (patch)
tree2fd16a31781c6b472930fb62ed9ed1b27dcfb4f0
parentcd3f715b19c1decb6bbd5ffccf854d40e15c6560 (diff)
downloadratpoison-4f1136a795945a583477e8e1450af83fd5fa510e.zip
fixed a small warning
-rw-r--r--src/getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getopt.c b/src/getopt.c
index fc87ce6..84faa8b 100644
--- a/src/getopt.c
+++ b/src/getopt.c
@@ -690,6 +690,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
else
{
if (opterr)
+ {
if (argv[optind - 1][1] == '-')
/* --option */
fprintf (stderr,
@@ -700,7 +701,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
fprintf (stderr,
_("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[optind - 1][0], pfound->name);
-
+ }
nextchar += strlen (nextchar);
optopt = pfound->val;