- Correct possibly unitialized variable umask. Resolves: rhbz #434968

This commit is contained in:
William Eden Cohen 2008-02-26 16:33:35 +00:00
parent 020c8f1f1e
commit b872444e25
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up libpfm-3.3/lib/pfmlib_itanium2.c.broken libpfm-3.3/lib/pfmlib_itanium2.c
--- libpfm-3.3/lib/pfmlib_itanium2.c.broken 2008-02-26 10:47:03.000000000 -0500
+++ libpfm-3.3/lib/pfmlib_itanium2.c 2008-02-26 10:47:50.000000000 -0500
@@ -231,7 +231,7 @@ check_inst_retired_events(pfmlib_input_p
int code;
int c;
unsigned int i, count, found = 0;
- unsigned long umask, mask;
+ unsigned long umask = 0, mask;
pfm_get_event_code(PME_ITA2_IA64_INST_RETIRED_THIS, &code);

View File

@ -1,5 +1,5 @@
%define DATE 080225
%define libpfm_release 1
%define libpfm_release 2
Summary: A performance monitoring library for Linux/ia64
Name: libpfm
Version: 3.3
@ -14,6 +14,7 @@ URL: http://sourceforge.net/projects/perfmon2/
Patch3: libpfm-3.2-rpm_opt.patch
#Patch4: libpfm-3.2-man3.patch
Patch5: libpfm-3.3-ia64-build.patch
BuildRequires: ncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -40,6 +41,7 @@ Requires: ncurses
%setup -q -n %{name}-%{version}
%patch3 -p1 -b .rpm_opt
#%patch4 -p1 -b .man3
%patch5 -p1 -b .ia64build
%build
make PREFIX=/usr DESTDIR=%{buildroot} LIBDIR=%{_libdir}
@ -68,6 +70,9 @@ rm -rf %{buildroot}
%{_prefix}/include/*
%changelog
* Tue Feb 26 2008 Will Cohen <wcohen@redhat.com> - 3.3-0.080225.2
- Correct possibly unitialized variable umask. Resolves: rhbz #434968
* Mon Feb 25 2008 Will Cohen <wcohen@redhat.com> - 3.3-0.080225.1
- Update to libpfm-3.3.