mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(sort_files): Make `func' volatile, so it can't be
clobbered by a `longjmp' into this function.
This commit is contained in:
1 parent
de786959dd
commit
7176ac4940
1 file changed
+3
-1
@@ -2693,7 +2693,9 @@ static int rev_str_extension (V a, V b) { return compstr_extension (b, a); }
|
||||
static void
|
||||
sort_files (void)
|
||||
{
|
||||
int (*func) (V, V);
|
||||
/* `func' must be `volatile', so it can't be
|
||||
clobbered by a `longjmp' into this function. */
|
||||
volatile int (*func) (V, V);
|
||||
|
||||
switch (sort_type)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user