summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sort.c b/src/sort.c
index cbc0c3856..06b0d95a1 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2341,10 +2341,10 @@ key_warnings (struct keyfield const *gkey, bool gkey_only)
pn = stpcpy (stpcpy (pn, "-k "), umaxtostr (sword + 1, tmp));
if (key->eword != SIZE_MAX)
{
- po = stpcpy (stpcpy (po, " -"), umaxtostr (eword + 1, tmp));
- pn = stpcpy (stpcpy (pn, ","),
- umaxtostr (eword + 1
- + (key->echar == SIZE_MAX), tmp));
+ stpcpy (stpcpy (po, " -"), umaxtostr (eword + 1, tmp));
+ stpcpy (stpcpy (pn, ","),
+ umaxtostr (eword + 1
+ + (key->echar == SIZE_MAX), tmp));
}
error (0, 0, _("obsolescent key `%s' used; consider `%s' instead"),
obuf, nbuf);
@@ -3770,6 +3770,7 @@ sort (char *const *files, size_t nfiles, char const *output_file,
size_t nthreads)
{
struct buffer buf;
+ IF_LINT (buf.buf = NULL);
size_t ntemps = 0;
bool output_file_created = false;