summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-07-19 10:01:08 +0100
committerThomas Adam <thomas@xteddy.org>2022-07-19 10:01:08 +0100
commitab1d18d00febe161080b8e81331861481110809f (patch)
tree316b173b58ffa4b0bfc9b95a47e543bbb7df1e1f /format.c
parente06c09889c8f56164ddc920d534357357769cf13 (diff)
parentee431d482a8dac52f4fb16de1038e819a9e42b9a (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.c b/format.c
index 411d1bab..8041f728 100644
--- a/format.c
+++ b/format.c
@@ -3564,12 +3564,12 @@ found:
}
if (modifiers & FORMAT_QUOTE_SHELL) {
saved = found;
- found = xstrdup(format_quote_shell(saved));
+ found = format_quote_shell(saved);
free(saved);
}
if (modifiers & FORMAT_QUOTE_STYLE) {
saved = found;
- found = xstrdup(format_quote_style(saved));
+ found = format_quote_style(saved);
free(saved);
}
return (found);