aboutsummaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync.c b/sync.c
index b9f52c8b0..cb4690c02 100644
--- a/sync.c
+++ b/sync.c
@@ -26,9 +26,9 @@
26extern int 26extern int
27sync_main(int argc, char * * argv) 27sync_main(int argc, char * * argv)
28{ 28{
29 if ( **(argv+1) == '-' ) { 29 if ( argc>1 && **(argv+1) == '-' ) {
30 usage( "sync\nWrite all buffered filesystem blocks to disk.\n"); 30 usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
31 } 31 }
32 return sync(); 32 exit( sync());
33} 33}
34 34