From 85703dd690a53e13661af0eea1c143d81007d56c Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sat, 22 Sep 2012 22:33:39 +0100 Subject: [PATCH] Fix undefined behaviour in -g (Debian ticket #688460) Thanks to Michael Tautschnig for reporting the bug. --- HISTORY | 6 ++++++ src/feh2.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 7b8b5cc..ac954c5 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,12 @@ This is the long-form history of the project. For the short form used to generate release announcements, see NEWS. +== Release ?.?? (currently unreleased) == + +1. Some potential undefined behaviour (which happens to do the right + thing on every compiler tested) related to the -g option has been + fixed. (Thanks to Michael Tautschnig for reporting the bug.) + == Release 0.29 (by Alex Smith, Eric S. Raymond) 29 Nov 2010 == === Changes by Eric S. Raymond === diff --git a/src/feh2.c b/src/feh2.c index 3eb7148..dead0df 100644 --- a/src/feh2.c +++ b/src/feh2.c @@ -1802,7 +1802,7 @@ void emit(tuple *tn, FILE *fp) int dim; int generatecfjump=0; /* AIS */ static int pasttryagain=0; /* AIS */ - extern int cdebug; + extern bool cdebug; /* AIS */ /* grind out label and source dump */ if (yydebug || cdebug || compile_only) -- 2.43.0