From ab640f4cd5605b6675538b196641c46c36c75c64 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Fri, 13 Jul 2018 12:15:46 +0200 Subject: [PATCH] Fix to stop a fall-through in a switch statement The following fixes a fall-through that prevented from reading the next entry in the UTMP file and terminated the program with an abort(). --- newlib/libc/unix/getut.c | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c index c3a9b626c..89ed7390f 100644 --- a/newlib/libc/unix/getut.c +++ b/newlib/libc/unix/getut.c @@ -65,6 +65,7 @@ getutid (struct utmp *id) case DEAD_PROCESS: if (id->ut_id == utmp_data.ut_id) return &utmp_data; + break; default: abort (); }