if (next) {
/* set pointer to the next option */
- *next = pos + subsz + sep + 1;
+ *next = pos + subsz;
if (**next == ',')
(*next)++;
}
rc = mnt_optstr_append_option(&optstr, name, value);
if (!rc)
printf("result: >%s<\n", optstr);
+ free(optstr);
return rc;
}
rc = mnt_optstr_prepend_option(&optstr, name, value);
if (!rc)
printf("result: >%s<\n", optstr);
+ free(optstr);
return rc;
}
rc = mnt_optstr_remove_option(&optstr, name);
if (!rc)
printf("result: >%s<\n", optstr);
+ free(optstr);
return rc;
}