diff options
Diffstat (limited to 'reboot/reboot.c')
-rw-r--r-- | reboot/reboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/reboot/reboot.c b/reboot/reboot.c index 007dfbaa4..f0cf40c89 100644 --- a/reboot/reboot.c +++ b/reboot/reboot.c @@ -56,6 +56,7 @@ int main(int argc, char *argv[]) if (argc > optind) optarg = argv[optind]; + if (!optarg || !optarg[0]) optarg = "shell"; prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); if (prop_len >= sizeof(property_val)) { |