Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0Uga-0000ec-VI for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 15:37:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0Uga-0002Mw-IA for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 15:37:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0UgZ-0002MU-U5 for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 15:37:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0UgX-0000q9-4C for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 15:37:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v96Fb5cB016440; Fri, 6 Oct 2017 11:37:05 -0400 From: Tom Lane To: David Binderman cc: "pgsql-bugs@postgresql.org" Subject: Re: postgresql-10.0/src/bin/psql/mainloop.c:465: suspicious condition ? In-reply-to: References: ,<13799.1507302448@sss.pgh.pa.us> Comments: In-reply-to David Binderman message dated "Fri, 06 Oct 2017 15:10:29 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <16438.1507304225.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 06 Oct 2017 11:37:05 -0400 Message-ID: <16439.1507304225@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David Binderman writes: >> Huh ... that code's been like that since 2006.  Odd that nothing's >> noticed the dead-ness before.  What tool were you using? > cppcheck, available from sourceforge. Thanks. I've corrected this in HEAD, but it seems not worth back-patching since it's really just cosmetic. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs