(sort_files): Make `func' volatile, so it can't be

clobbered by a `longjmp' into this function.
This commit is contained in:
Jim Meyering committed 2003-07-26 06:20:54 +00:00
1 parent de786959dd
commit 7176ac4940
1 file changed
+3 -1
+3 -1
View File
@@ -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)
{