diff options
Diffstat (limited to 'fdflush.c')
-rw-r--r-- | fdflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |