parse_mount_options(): don't parse empty options string

master
szaka 2007-03-03 23:36:43 +00:00
parent 3e9874de79
commit cf16a8191b
1 changed files with 1 additions and 1 deletions

View File

@ -1671,7 +1671,7 @@ static char *parse_mount_options(const char *orig_opts)
ctx->silent = TRUE;
s = options;
while ((val = strsep(&s, ","))) {
while (s && *s && (val = strsep(&s, ","))) {
opt = strsep(&val, "=");
if (!strcmp(opt, "ro")) { /* Read-only mount. */
if (val) {