summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShigio YAMAGUCHI <shigio@gnu.org>2011-08-02 14:20:12 +0200
committerJim Meyering <meyering@redhat.com>2011-08-02 17:47:25 +0200
commit3849c7c1e47e70ab9dd0d188afb9618982c7883c (patch)
tree9d9f316c293e1b374bd41bbdfc2b92fe9a1e67e4
parent76833d687cb435f98a1fd664f04caf19894b8147 (diff)
downloadidutils-3849c7c1e47e70ab9dd0d188afb9618982c7883c.tar.gz
idutils-3849c7c1e47e70ab9dd0d188afb9618982c7883c.tar.bz2
idutils-3849c7c1e47e70ab9dd0d188afb9618982c7883c.zip
lid: fix a bug that made it so -o, -x, -d did not work
* src/lid.c (radix_flag): Initialize to 0, not radix_all. (main): Map 0 to the default, radix_all. Tiny change.
-rw-r--r--src/lid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lid.c b/src/lid.c
index 942a6f8..5ab7620 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -161,7 +161,7 @@ static int show_version;
/* Which radixes do we want? */
-static int radix_flag = radix_all;
+static int radix_flag = 0;
/* If nonzero, ignore differences in alphabetic case while matching. */
@@ -411,6 +411,8 @@ main (int argc, char **argv)
if (show_help)
help_me ();
+ if (radix_flag == 0)
+ radix_flag = radix_all;
if (separator_style == ss_contextual)
{
if (isatty (STDOUT_FILENO))