From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96247 invoked by alias); 13 Jul 2018 11:33:54 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 96187 invoked by uid 9078); 13 Jul 2018 11:33:54 -0000 Date: Fri, 13 Jul 2018 11:33:00 -0000 Message-ID: <20180713113354.96184.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix to stop a fall-through in a switch statement X-Act-Checkin: newlib-cygwin X-Git-Author: Jordi Sanfeliu X-Git-Refname: refs/heads/master X-Git-Oldrev: d02cc7a09d93768961ec5d77acd2ae51b9088d24 X-Git-Newrev: ab640f4cd5605b6675538b196641c46c36c75c64 X-SW-Source: 2018-q3/txt/msg00015.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;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(). Diff: --- 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) case DEAD_PROCESS: if (id->ut_id == utmp_data.ut_id) return &utmp_data; + break; default: abort (); }