public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] Fix to stop a fall-through in a switch statement
@ 2018-07-13 11:33 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-07-13 11:33 UTC (permalink / raw)
  To: newlib-cvs;h=ab640f4cd5605b6675538b196641c46c36c75c64

commit ab640f4cd5605b6675538b196641c46c36c75c64
Author: Jordi Sanfeliu <>
Date:   Fri Jul 13 12:15:46 2018 +0200

    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 c3a9b62..89ed739 100644
--- a/newlib/libc/unix/getut.c
+++ b/newlib/libc/unix/getut.c
@@ -65,6 +65,7 @@ getutid (struct utmp *id)
 	  if (id->ut_id == utmp_data.ut_id)
 	    return &utmp_data;
+	  break;
 	  abort ();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-13 11:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13 11:33 [newlib-cygwin] Fix to stop a fall-through in a switch statement Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).