aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-29 08:19:04 +0000
committerGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-29 08:19:04 +0000
commit74078685e6dfb5d084901ebf44351f3c77987f3b (patch)
tree09c346499e7d0426598d483b419fa7c3cf24c08f /applets
parent843c5ef0f95e0a6f61f4e27d0355aca5e09ee6b1 (diff)
downloadbusybox-74078685e6dfb5d084901ebf44351f3c77987f3b.tar.gz
busybox-74078685e6dfb5d084901ebf44351f3c77987f3b.tar.bz2
busybox.c: ENABLE_LOCALE logic correct.
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 833e8d372..90ea2bdce 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
if (*(s++) == '/') bb_applet_name = s;
/* Set locale for everybody except `init' */
- if(ENABLE_LOCALE_SUPPORT && (!ENABLE_INIT || getpid()==1))
+ if(ENABLE_LOCALE_SUPPORT && getpid() != 1)
setlocale(LC_ALL, "");
run_applet_by_name(bb_applet_name, argc, argv);