[Ocfs2-commits] manish commits r1205 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jun 23 21:04:17 CDT 2004
Author: manish
Date: 2004-06-23 20:04:15 -0500 (Wed, 23 Jun 2004)
New Revision: 1205
Modified:
trunk/src/super.c
Log:
If we get an empty string in our mount options, break out of the loop
Modified: trunk/src/super.c
===================================================================
--- trunk/src/super.c 2004-06-24 00:45:41 UTC (rev 1204)
+++ trunk/src/super.c 2004-06-24 01:04:15 UTC (rev 1205)
@@ -428,6 +428,8 @@
LOG_TRACE_ARGS("strlen(options) = %u, options = \"%s\"\n", (unsigned int)strlen(options), options);
while ((c = strsep(&options, ",")) != NULL) {
+ if (*c == '\0')
+ break;
if ((value = strchr (c, '=')) != NULL)
*value++ = 0;
if (!strcmp (c, "gid")) {
More information about the Ocfs2-commits
mailing list