summaryrefslogtreecommitdiffhomepage
path: root/util-linux/fdflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fdflush.c')
-rw-r--r--util-linux/fdflush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c
index 51b0c2bac..a244e8def 100644
--- a/util-linux/fdflush.c
+++ b/util-linux/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");
}