mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Fix two accidental overwrites of 'flags'.
When I came to actually remove the global 'flags' word, I found that I got compile failures in two functions that should never have been accessing it at all, because they forgot to declare _local_ variables of the same name. Yikes! (Of course, _now_ that's harmless, because I've just removed all the actual semantics from the global variable. But I'm about to remove the variable too, so these bugs would become compile failures.)
This commit is contained in:
@ -1107,7 +1107,7 @@ static void x11font_enum_fonts(GtkWidget *widget,
|
||||
* font, which we do by examining the spacing field
|
||||
* again.
|
||||
*/
|
||||
flags = FONTFLAG_SERVERSIDE;
|
||||
int flags = FONTFLAG_SERVERSIDE;
|
||||
if (!strchr("CcMm", xlfd->spacing[0]))
|
||||
flags |= FONTFLAG_NONMONOSPACED;
|
||||
|
||||
|
Reference in New Issue
Block a user