summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/zpl_super.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/zpl_super.c b/module/zfs/zpl_super.c
index bcdbbd69e..91c36c9e3 100644
--- a/module/zfs/zpl_super.c
+++ b/module/zfs/zpl_super.c
@@ -336,12 +336,12 @@ zpl_parse_options(char *osname, char *mntopts, zfs_mntopts_t *zmo,
if (mntopts) {
substring_t args[MAX_OPT_ARGS];
- char *tmp_mntopts, *p;
+ char *tmp_mntopts, *p, *t;
int token;
- tmp_mntopts = strdup(mntopts);
+ t = tmp_mntopts = strdup(mntopts);
- while ((p = strsep(&tmp_mntopts, ",")) != NULL) {
+ while ((p = strsep(&t, ",")) != NULL) {
if (!*p)
continue;