projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de78695
)
(sort_files): Make `func' volatile, so it can't be
author
Jim Meyering
<jim@meyering.net>
Sat, 26 Jul 2003 06:20:54 +0000
(06:20 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 26 Jul 2003 06:20:54 +0000
(06:20 +0000)
clobbered by a `longjmp' into this function.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
64a1aa9
..
a058a7d
100644
(file)
--- 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)
{