From 18b80209d51ef251cb4425748b0afe58cda7d7f4 Mon Sep 17 00:00:00 2001 From: buslov Date: Sun, 29 Oct 2017 19:24:18 +0300 Subject: [PATCH] Fix V614 warning from PVS-Studio Static Analyzer Potentially uninitialized variable 'result' used. --- calc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/calc.c b/calc.c index 3645d71..134b066 100644 --- a/calc.c +++ b/calc.c @@ -139,6 +139,7 @@ int execute(struct token temp) { } d1 = outStack[--outCount]; + result = d1; if(temp.subType == SIN) result = USE_DEGREE ? sin(toRadians(d1)) : sin(d1);