aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource/csource.go')
-rw-r--r--pkg/csource/csource.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index 7031849b4..05bead91d 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -217,7 +217,7 @@ func (ctx *context) generateTestFunc(calls []string, hasVars bool, name string)
if !opts.Threaded && !opts.Collide {
ctx.printf("void %v()\n{\n", name)
if hasVars {
- ctx.printf("\tlong res;")
+ ctx.printf("\tlong res = 0;\n")
}
if opts.Debug {
// Use debug to avoid: error: ‘debug’ defined but not used.