diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-14 22:14:12 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-14 22:14:12 +0000 |
commit | 2479cd4a5d50044e9d8e791a6ac17d528761a0a6 (patch) | |
tree | 0bbb154d479a68d271ab490bea8754a06a784044 /miscutils | |
parent | 289ff0e3411543446f40cfa45db606431a4657e1 (diff) | |
download | busybox-w32-2479cd4a5d50044e9d8e791a6ac17d528761a0a6.tar.gz busybox-w32-2479cd4a5d50044e9d8e791a6ac17d528761a0a6.tar.bz2 busybox-w32-2479cd4a5d50044e9d8e791a6ac17d528761a0a6.zip |
inotifyd: fix "inotifyd with no params" case
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/inotifyd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c index 216a69654..2a1355156 100644 --- a/miscutils/inotifyd.c +++ b/miscutils/inotifyd.c | |||
@@ -58,7 +58,7 @@ int inotifyd_main(int argc UNUSED_PARAM, char **argv) | |||
58 | const char *args[] = { *argv, NULL, NULL, NULL, NULL }; | 58 | const char *args[] = { *argv, NULL, NULL, NULL, NULL }; |
59 | 59 | ||
60 | // sanity check: agent and at least one watch must be given | 60 | // sanity check: agent and at least one watch must be given |
61 | if (!argv[1]) | 61 | if (!argv[0] || !argv[1]) |
62 | bb_show_usage(); | 62 | bb_show_usage(); |
63 | 63 | ||
64 | // open inotify | 64 | // open inotify |