summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libps/procstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 14cf5547..5f01ef4e 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -820,7 +820,7 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags)
ps->task_events_info = &ps->task_events_info_buf;
ps->task_events_info_size = TASK_EVENTS_INFO_COUNT;
if (task_info (ps->task, TASK_EVENTS_INFO,
- (task_info_t)&ps->task_events_info,
+ (task_info_t)ps->task_events_info,
&ps->task_events_info_size)
== 0)
have |= PSTAT_TASK_EVENTS;