diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-30 01:19:09 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:03:16 +0200 |
commit | 8ae3673880056b5da0bf9a5fbf9b37276adae56e (patch) | |
tree | 004e003e47451b776890d337671c21fa1d0fdfca /handle_event.c | |
parent | 1e0b9dc0d527afddab645232658bd67e19ad81b0 (diff) | |
download | ltrace-8ae3673880056b5da0bf9a5fbf9b37276adae56e.tar.gz |
Fix memory errors
Diffstat (limited to 'handle_event.c')
-rw-r--r-- | handle_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/handle_event.c b/handle_event.c index 8aa35aa..5b6cc40 100644 --- a/handle_event.c +++ b/handle_event.c @@ -700,6 +700,7 @@ callstack_push_syscall(Process *proc, int sysnum) { } elem = &proc->callstack[proc->callstack_depth]; + *elem = (struct callstack_element){}; elem->is_syscall = 1; elem->c_un.syscall = sysnum; elem->return_addr = NULL; @@ -724,6 +725,7 @@ callstack_push_symfunc(Process *proc, struct library_symbol *sym) { } elem = &proc->callstack[proc->callstack_depth++]; + *elem = (struct callstack_element){}; elem->is_syscall = 0; elem->c_un.libfunc = sym; |