summary refs log tree commit diff
path: root/locale/programs/localedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/localedef.c')
-rw-r--r--locale/programs/localedef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index f57c46714c..4f46d3d987 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -194,7 +194,7 @@ main (int argc, char *argv[])
 
   /* Add the first entry in the locale list.  */
   memset (&global, '\0', sizeof (struct localedef_t));
-  global.name = input_file;
+  global.name = input_file ?: "/dev/stdin";
   global.needed = ALL_LOCALES;
   locales = &global;