aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 57c972f79..89dea3e6a 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -639,8 +639,6 @@ int *const bb_errno __attribute__ ((section (".data")));
639 639
640int main(int argc, char **argv) 640int main(int argc, char **argv)
641{ 641{
642 const char *s;
643
644#ifdef __GLIBC__ 642#ifdef __GLIBC__
645 (*(int **)&bb_errno) = __errno_location(); 643 (*(int **)&bb_errno) = __errno_location();
646#endif 644#endif
@@ -655,9 +653,7 @@ int main(int argc, char **argv)
655 applet_name = argv[0]; 653 applet_name = argv[0];
656 if (applet_name[0] == '-') 654 if (applet_name[0] == '-')
657 applet_name++; 655 applet_name++;
658 s = strrchr(applet_name, '/'); 656 applet_name = bb_basename(applet_name);
659 if (s)
660 applet_name = s + 1;
661 657
662 parse_config_file(); /* ...maybe, if FEATURE_SUID_CONFIG */ 658 parse_config_file(); /* ...maybe, if FEATURE_SUID_CONFIG */
663 659