aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Sanfeliu <jordi@fibranet.cat>2018-07-13 12:15:46 +0200
committerCorinna Vinschen <corinna@vinschen.de>2018-07-13 13:33:33 +0200
commitab640f4cd5605b6675538b196641c46c36c75c64 (patch)
tree6f7c97623e3a947742ad3937317a99b333ec4a30
parentd02cc7a09d93768961ec5d77acd2ae51b9088d24 (diff)
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().
-rw-r--r--newlib/libc/unix/getut.c1
1 files changed, 1 insertions, 0 deletions
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 ();
}