summary refs log tree commit diff
path: root/locale/programs/locale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locale.c')
-rw-r--r--locale/programs/locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index d42081bb53..8587345bf2 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -153,7 +153,7 @@ main (int argc, char *argv[])
   textdomain (PACKAGE);
 
   while ((optchar = getopt_long (argc, argv, "achkmV", long_options, NULL))
-         != EOF)
+         != -1)
     switch (optchar)
       {
       case '\0':		/* Long option.  */