diff options
| author | Jim Meyering <jim@meyering.net> | 2003-07-26 06:20:54 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2003-07-26 06:20:54 +0000 |
| commit | 7176ac494021ce57bb513503a3d07313c2f19e9c (patch) | |
| tree | 7fff4776d8c643ca6a3aadf9a95720821c53cb35 /src | |
| parent | *** empty log message *** (diff) | |
| download | coreutils-7176ac494021ce57bb513503a3d07313c2f19e9c.tar.gz coreutils-7176ac494021ce57bb513503a3d07313c2f19e9c.zip | |
(sort_files): Make `func' volatile, so it can't be
clobbered by a `longjmp' into this function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ls.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |
