[Ocfs2-tools-commits] mfasheh commits r220 - trunk/mounted.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Sep 7 19:20:55 CDT 2004


Author: mfasheh
Date: 2004-09-07 19:20:53 -0500 (Tue, 07 Sep 2004)
New Revision: 220

Modified:
   trunk/mounted.ocfs2/mounted.c
Log:
* just return 0 from invalid params instead of jumping to the end of
  main() where we'll try to free invalid pointers :)



Modified: trunk/mounted.ocfs2/mounted.c
===================================================================
--- trunk/mounted.ocfs2/mounted.c	2004-09-08 00:04:13 UTC (rev 219)
+++ trunk/mounted.ocfs2/mounted.c	2004-09-08 00:20:53 UTC (rev 220)
@@ -60,7 +60,7 @@
 
 	if (argc < 2) {
 		fprintf(stderr, "Usage: %s device\n", argv[0]);
-		goto bail;
+		return 0;
 	}
 
 	initialize_ocfs_error_table();



More information about the Ocfs2-tools-commits mailing list