diff options
Diffstat (limited to 'pkg/csource')
| -rw-r--r-- | pkg/csource/csource.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 84f458472..d2ab513cc 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -116,7 +116,7 @@ func (ctx *context) generateSyscalls(calls []string, hasVars bool) string { } } else { if hasVars || opts.Trace { - fmt.Fprintf(buf, "\tintptr_t res;") + fmt.Fprintf(buf, "\tintptr_t res = 0;\n") } fmt.Fprintf(buf, "\tswitch (call) {\n") for i, c := range calls { |
