summaryrefslogtreecommitdiff
path: root/fdflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdflush.c')
-rw-r--r--fdflush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdflush.c b/fdflush.c
index 51b0c2b..a244e8d 100644
--- a/fdflush.c
+++ b/fdflush.c
@@ -31,7 +31,7 @@ extern int fdflush_main(int argc, char **argv)
{
int value;
int fd;
- if ( **(argv+1) == '-' ) {
+ if ( argc <= 1 || **(argv++) == '-' ) {
usage( "fdflush device\n");
}