From bd6e5927c46335663efcf3d78f80c715526b9e79 Mon Sep 17 00:00:00 2001 From: Polluks Date: Wed, 18 Nov 2020 01:01:17 +0100 Subject: [PATCH] Fixed #1341 --- src/cc65/coptstop.c | 2 +- src/cc65/expr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc65/coptstop.c b/src/cc65/coptstop.c index 41dfb5526..59bbe6dc9 100644 --- a/src/cc65/coptstop.c +++ b/src/cc65/coptstop.c @@ -1732,7 +1732,7 @@ unsigned OptStackOps (CodeSeg* S) int I; int OldEntryCount; /* Old number of entries */ unsigned Used; /* What registers would be used */ - unsigned PushedRegs; /* Track if the same regs are used after the push */ + unsigned PushedRegs = 0; /* Track if the same regs are used after the push */ int RhsAChgIndex; /* Track if rhs is changed more than once */ int RhsXChgIndex; /* Track if rhs is changed more than once */ int IsRegAOptFunc = 0; /* Whether to use the RegA-only optimizations */ diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 7ddd8f43a..1c8c25020 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -3871,8 +3871,8 @@ static void hieOr (ExprDesc *Expr) static void hieQuest (ExprDesc* Expr) /* Parse the ternary operator */ { - int FalseLab; - int TrueLab; + int FalseLab = 0; + int TrueLab = 0; CodeMark SkippedBranch; CodeMark TrueCodeEnd; ExprDesc Expr2; /* Expression 2 */