fixing uninitialized variable
This commit is contained in:
parent
1ed16d0c05
commit
82c1ce3d3e
19
openscap-0.5.6-uninit.patch
Normal file
19
openscap-0.5.6-uninit.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff -up openscap-0.5.6/src/OVAL/oval_agent.c.uninit openscap-0.5.6/src/OVAL/oval_agent.c
|
||||||
|
--- openscap-0.5.6/src/OVAL/oval_agent.c.uninit 2010-01-05 11:45:00.028530255 +0100
|
||||||
|
+++ openscap-0.5.6/src/OVAL/oval_agent.c 2010-01-05 11:45:14.768529206 +0100
|
||||||
|
@@ -744,6 +744,7 @@ struct oval_results_model *oval_results_
|
||||||
|
|
||||||
|
model->systems = oval_collection_new();
|
||||||
|
model->definition_model = definition_model;
|
||||||
|
+ model->is_locked = false;
|
||||||
|
if (syschar_models) {
|
||||||
|
struct oval_syschar_model *syschar_model;
|
||||||
|
for (syschar_model = *syschar_models; syschar_model; syschar_model = *(++syschar_models)) {
|
||||||
|
@@ -751,7 +752,6 @@ struct oval_results_model *oval_results_
|
||||||
|
oval_results_model_add_system(model, sys);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- model->is_locked = false;
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Name: openscap
|
Name: openscap
|
||||||
Version: 0.5.6
|
Version: 0.5.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
Summary: Set of open source libraries enabling integration of the SCAP line of standards
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.open-scap.org/
|
URL: http://www.open-scap.org/
|
||||||
Source0 http://fedorahosted.org/releases/o/p/openscap/%{name}-%{version}.tar.gz
|
Source0: http://fedorahosted.org/releases/o/p/openscap/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: openscap-0.5.6-uninit.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: swig pcre-devel libxml2-devel
|
BuildRequires: swig pcre-devel libxml2-devel
|
||||||
BuildRequires: rpm-devel
|
BuildRequires: rpm-devel
|
||||||
@ -53,6 +54,7 @@ libraries can be used by perl.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1 -b .uninit
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
@ -93,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 05 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.6-2
|
||||||
|
- fixing uninitialized variable
|
||||||
|
|
||||||
* Mon Jan 04 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.6-1
|
* Mon Jan 04 2010 Peter Vrabec <pvrabec@redhat.com> 0.5.6-1
|
||||||
- upgrade
|
- upgrade
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user