diff options
Diffstat (limited to 'util-linux/fdflush.c')
-rw-r--r-- | util-linux/fdflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index 51b0c2b..a244e8d 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"); } |