[ceelog] Added patch to fix crash because error is not initialized to NULL
Milan Bartos
mbartos at fedoraproject.org
Wed Dec 19 08:27:00 UTC 2012
commit a94c36b3c36b77b3878546eb1b805e8e767d6ac3
Author: Milan Bartos <mbartos at redhat.com>
Date: Wed Dec 19 09:26:14 2012 +0100
Added patch to fix crash because error is not initialized to NULL
new file: ceelog-0.1-crash-error-not-NULL.patch
modified: ceelog.spec
ceelog-0.1-crash-error-not-NULL.patch | 11 +++++++++++
ceelog.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/ceelog-0.1-crash-error-not-NULL.patch b/ceelog-0.1-crash-error-not-NULL.patch
new file mode 100644
index 0000000..ac47b24
--- /dev/null
+++ b/ceelog-0.1-crash-error-not-NULL.patch
@@ -0,0 +1,11 @@
+--- ceelog-0.1/src/ceelog.c Wed Dec 12 10:48:26 2012
++++ ceelog-0.1/src/ceelog.c Wed Dec 12 10:48:20 2012
+@@ -46,7 +46,7 @@
+ int
+ main (int argc, char *argv[])
+ {
+- GError *error;
++ GError *error = NULL;
+ struct ceelog_compiled_expr *expr;
+ struct ceelog_source *src;
+ struct ceelog_event *evt;
diff --git a/ceelog.spec b/ceelog.spec
index e1aff92..750a71f 100644
--- a/ceelog.spec
+++ b/ceelog.spec
@@ -1,11 +1,12 @@
Name: ceelog
Version: 0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Tool for receiving, filtering and searching CEE/Lumberjack logs
License: GPLv2
URL: https://fedorahosted.org/ceelog
Source0: https://fedorahosted.org/releases/c/e/ceelog/%{name}-%{version}.tar.xz
+Patch0: ceelog-0.1-crash-error-not-NULL.patch
BuildRequires: glib2-devel
BuildRequires: pcre-devel
@@ -33,6 +34,7 @@ Ceelog-libs package contains libraries for ceelog.
%prep
%setup -q
+%patch0 -p1
%build
More information about the scm-commits
mailing list