From owner-svn-ports-head@freebsd.org Mon Jan 8 14:46:01 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57312E70789; Mon, 8 Jan 2018 14:46:01 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3260A7E4E5; Mon, 8 Jan 2018 14:46:01 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 574E21098; Mon, 8 Jan 2018 14:46:00 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w08Ek0Sh026913; Mon, 8 Jan 2018 14:46:00 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08Ek0Yw026912; Mon, 8 Jan 2018 14:46:00 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201801081446.w08Ek0Yw026912@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Mon, 8 Jan 2018 14:46:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458424 - head/editors/medit X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: head/editors/medit X-SVN-Commit-Revision: 458424 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2018 14:46:01 -0000 Author: danfe Date: Mon Jan 8 14:46:00 2018 New Revision: 458424 URL: https://svnweb.freebsd.org/changeset/ports/458424 Log: Quickly fix a segmentation fault when trying to open About dialog, by clearing `errno' prior to calling strtol(3). Typically this is not needed (return value must be checked before the `errno' check), but in case of strtol(3) return value can be zero for both successful and failed conversions. Modified: head/editors/medit/Makefile Modified: head/editors/medit/Makefile ============================================================================== --- head/editors/medit/Makefile Mon Jan 8 14:44:54 2018 (r458423) +++ head/editors/medit/Makefile Mon Jan 8 14:46:00 2018 (r458424) @@ -36,5 +36,7 @@ post-patch: @${REINPLACE_CMD} -e '/std::nullptr_t/ { x ; \ s/.*/#include / ; G ; }' \ ${WRKSRC}/moo/moopython/moopython-utils.h + @${REINPLACE_CMD} -e 's/long val = strtol/errno = 0; &/' \ + ${WRKSRC}/moo/mooutils/mooglade.c .include