diff --git a/networking/telnet.c b/networking/telnet.c index d9f0e94bc..314363188 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -645,8 +645,7 @@ extern int telnet_main(int argc, char** argv) bb_show_usage(); #ifdef CONFIG_FEATURE_TELNET_AUTOLOGIN - unsigned long flags = bb_getopt_ulflags(argc, argv, "al:", &autologin); - if (flags & 1) + if (1 & bb_getopt_ulflags(argc, argv, "al:", &autologin)) autologin = getenv("USER"); if (optind < argc) {