aboutsummaryrefslogtreecommitdiff
path: root/login/utmpname.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/utmpname.c')
-rw-r--r--login/utmpname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/utmpname.c b/login/utmpname.c
index c0b6df2ce7..e0a78aff42 100644
--- a/login/utmpname.c
+++ b/login/utmpname.c
@@ -44,6 +44,7 @@ __utmpname (const char *file)
/* Close the old file. */
(*__libc_utmp_jump_table->endutent) ();
+ __libc_utmp_jump_table = &__libc_utmp_unknown_functions;
if (strcmp (file, __libc_utmp_file_name) != 0)
{
@@ -68,7 +69,6 @@ __utmpname (const char *file)
}
}
- __libc_utmp_jump_table = &__libc_utmp_unknown_functions;
result = 0;
done: