aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 2f677372d..56e0d2ccc 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -612,14 +612,14 @@ int main(int argc, char **argv)
612{ 612{
613 const char *s; 613 const char *s;
614 614
615 applet_name = argv[0];
616#ifdef BB_NOMMU 615#ifdef BB_NOMMU
617 /* NOMMU re-exec trick sets high-order bit in first byte of name */ 616 /* NOMMU re-exec trick sets high-order bit in first byte of name */
618 if (applet_name[0] & 0x80) { 617 if (argv[0][0] & 0x80) {
619 re_execed = 1; 618 re_execed = 1;
620 applet_name[0] &= 0x7f; 619 argv[0][0] &= 0x7f;
621 } 620 }
622#endif 621#endif
622 applet_name = argv[0];
623 if (applet_name[0] == '-') 623 if (applet_name[0] == '-')
624 applet_name++; 624 applet_name++;
625 s = strrchr(applet_name, '/'); 625 s = strrchr(applet_name, '/');