mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* src/sort.c (main): Plug a tiny memory leak.
Move declaration of local "minus" down to be nearer point of use.
This commit is contained in:
1 parent
84268dae4e
commit
d5d00c7f9f
2 files changed
+8
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2006-11-13 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* src/sort.c (main): Plug a tiny memory leak.
|
||||
Move declaration of local "minus" down to be nearer point of use.
|
||||
|
||||
2006-11-12 Jim Meyering <jim@meyering.net>
|
||||
|
||||
du would exit early, when encountering an inaccessible directory
|
||||
|
||||
+3
-1
@@ -2292,7 +2292,7 @@ main (int argc, char **argv)
|
||||
size_t nfiles = 0;
|
||||
bool posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL);
|
||||
bool obsolete_usage = (posix2_version () < 200112);
|
||||
char *minus = "-", **files;
|
||||
char **files;
|
||||
char const *outfile = NULL;
|
||||
|
||||
initialize_main (&argc, &argv);
|
||||
@@ -2657,7 +2657,9 @@ main (int argc, char **argv)
|
||||
|
||||
if (nfiles == 0)
|
||||
{
|
||||
static char *minus = "-";
|
||||
nfiles = 1;
|
||||
free (files);
|
||||
files = −
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user