summaryrefslogtreecommitdiff
path: root/src/utmp-wtmp.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-11-06 23:07:54 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-11-07 01:10:34 +0100
commitb8e47420b32b52619c6c49c98a663bee7929ccbe (patch)
tree054237a37334515d9a206af472ae476e69711cb8 /src/utmp-wtmp.c
parent0ad26e09de813857382ec3a787fc6df5e52cf98b (diff)
utmp: no need to zero a struct before overwriting it with memcpy
Diffstat (limited to 'src/utmp-wtmp.c')
-rw-r--r--src/utmp-wtmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c
index e7b2e3cd9f..98c1a25e84 100644
--- a/src/utmp-wtmp.c
+++ b/src/utmp-wtmp.c
@@ -242,8 +242,6 @@ int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) {
if (found->ut_pid != pid)
return 0;
- zero(store);
-
memcpy(&store, &lookup, sizeof(store));
store.ut_type = DEAD_PROCESS;
store.ut_exit.e_termination = code;