From: Jim Meyering Date: Sat, 26 Jul 2003 06:20:54 +0000 (+0000) Subject: (sort_files): Make `func' volatile, so it can't be X-Git-Tag: v5.0.90~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7176ac494021ce57bb513503a3d07313c2f19e9c;p=thirdparty%2Fcoreutils.git (sort_files): Make `func' volatile, so it can't be clobbered by a `longjmp' into this function. --- diff --git a/src/ls.c b/src/ls.c index 64a1aa9832..a058a7d90e 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) {