aboutsummaryrefslogtreecommitdiff
path: root/src/env-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env-update.c')
-rw-r--r--src/env-update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env-update.c b/src/env-update.c
index f3f4f3b8..e0aa63f9 100644
--- a/src/env-update.c
+++ b/src/env-update.c
@@ -131,7 +131,7 @@ int main (int argc, char **argv)
"%s%s", isspecial_spaced ? " " : ":", value);
} else {
free (envs[k - 1]);
- envs[k - 1] = strdup (entry);
+ envs[k - 1] = rc_xstrdup (entry);
}
replaced = true;
}