fixing uninitialized variable

This commit is contained in:
Peter Vrabec 2010-01-05 11:06:16 +00:00
parent 1ed16d0c05
commit 82c1ce3d3e
2 changed files with 26 additions and 2 deletions

View 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;
}

View File

@ -3,12 +3,13 @@
Name: openscap
Version: 0.5.6
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Set of open source libraries enabling integration of the SCAP line of standards
Group: System Environment/Libraries
License: LGPLv2+
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)
BuildRequires: swig pcre-devel libxml2-devel
BuildRequires: rpm-devel
@ -53,6 +54,7 @@ libraries can be used by perl.
%prep
%setup -q
%patch1 -p1 -b .uninit
%build
%configure
@ -93,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT
%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
- upgrade