summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 64a1aa983..a058a7d90 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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)
{