Date: Fri, 18 Oct 2013 09:59:43 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330734 - in head/devel/avr-gdb: . files Message-ID: <201310180959.r9I9xhE6054873@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Fri Oct 18 09:59:43 2013 New Revision: 330734 URL: http://svnweb.freebsd.org/changeset/ports/330734 Log: Fix two bugs reported by clang. PR: ports/172209 Submitted by: Miklos Magyari <magyarimiki@gmail.com> Approved by: maintainer timeout (1 year) Added: head/devel/avr-gdb/files/patch-bfd-bfdio.c (contents, props changed) head/devel/avr-gdb/files/patch-bfd-elflink.c (contents, props changed) Modified: head/devel/avr-gdb/Makefile Modified: head/devel/avr-gdb/Makefile ============================================================================== --- head/devel/avr-gdb/Makefile Fri Oct 18 09:56:47 2013 (r330733) +++ head/devel/avr-gdb/Makefile Fri Oct 18 09:59:43 2013 (r330734) @@ -3,7 +3,7 @@ PORTNAME= gdb PORTVERSION= 7.3.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= gdb Added: head/devel/avr-gdb/files/patch-bfd-bfdio.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/avr-gdb/files/patch-bfd-bfdio.c Fri Oct 18 09:59:43 2013 (r330734) @@ -0,0 +1,11 @@ +--- bfd/bfdio.c.orig ++++ bfd/bfdio.c +@@ -577,7 +577,7 @@ + { + struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; + +- memset (statbuf, 0, sizeof (statbuf)); ++ memset (statbuf, 0, sizeof (*statbuf)); + statbuf->st_size = bim->size; + + return 0; Added: head/devel/avr-gdb/files/patch-bfd-elflink.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/avr-gdb/files/patch-bfd-elflink.c Fri Oct 18 09:59:43 2013 (r330734) @@ -0,0 +1,11 @@ +--- bfd/elflink.c.orig ++++ bfd/elflink.c +@@ -12456,7 +12456,7 @@ + abfd, sec); + else if (sec->size != 0) + { +- bfd_byte *sec_contents, *l_sec_contents; ++ bfd_byte *sec_contents = NULL, *l_sec_contents = NULL; + + if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents)) + (*_bfd_error_handler)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310180959.r9I9xhE6054873>