X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Futmp-wtmp.c;fp=src%2Futmp-wtmp.c;h=98c1a25e84d1ac6d5c60c132e576be1a2016e1df;hb=b8e47420b32b52619c6c49c98a663bee7929ccbe;hp=e7b2e3cd9f1828c7a514e41efe494c09650c53ab;hpb=0ad26e09de813857382ec3a787fc6df5e52cf98b;p=elogind.git diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c index e7b2e3cd9..98c1a25e8 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;