[libunicapgtk] fix ivalid use of local variable in update_lock_destroy_cb()
Kamil Dudka
kdudka at fedoraproject.org
Thu Oct 7 10:13:09 UTC 2010
commit 624c44be71605512fa22b29812b79d0d43bfac7e
Author: Kamil Dudka <kdudka at redhat.com>
Date: Thu Oct 7 12:04:39 2010 +0200
fix ivalid use of local variable in update_lock_destroy_cb()
libunicapgtk-0.9.8-destroycb.patch | 13 +++++++++++++
libunicapgtk.spec | 10 +++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/libunicapgtk-0.9.8-destroycb.patch b/libunicapgtk-0.9.8-destroycb.patch
new file mode 100644
index 0000000..8f67779
--- /dev/null
+++ b/libunicapgtk-0.9.8-destroycb.patch
@@ -0,0 +1,13 @@
+diff --git a/src/unicapgtk_property_dialog.c b/src/unicapgtk_property_dialog.c
+index 0adf8a1..83288ef 100644
+--- a/src/unicapgtk_property_dialog.c
++++ b/src/unicapgtk_property_dialog.c
+@@ -308,7 +308,7 @@ static gboolean property_update_timeout_cb( UnicapgtkPropertyDialog *ugtk )
+
+ static void update_lock_destroy_cb( gpointer _id )
+ {
+- guint id = ( guint ) id;
++ guint id = ( guint ) _id;
+
+ if( id )
+ {
diff --git a/libunicapgtk.spec b/libunicapgtk.spec
index 7dffb27..137bc47 100644
--- a/libunicapgtk.spec
+++ b/libunicapgtk.spec
@@ -1,12 +1,16 @@
Summary: Library to build graphical widgets for the unicap library
Name: libunicapgtk
Version: 0.9.8
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://www.unicap-imaging.org/
Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
Patch0: libunicapgtk-bz532289.patch
+
+# fix ivalid use of local variable in update_lock_destroy_cb()
+Patch1: libunicapgtk-0.9.8-destroycb.patch
+
BuildRequires: intltool, /usr/bin/perl, perl(XML::Parser), gettext, gtk-doc >= 1.4
BuildRequires: libucil-devel, gtk2-devel, libXv-devel, libXext-devel, libX11-devel
BuildRequires: libICE-devel
@@ -33,6 +37,7 @@ API documentation of the library, too.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure --disable-rpath --enable-gtk-doc
@@ -67,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gtk-doc/html/%{name}
%changelog
+* Thu Oct 07 2010 Kamil Dudka <kdudka at redhat.com> 0.9.8-5
+- fix ivalid use of local variable in update_lock_destroy_cb()
+
* Wed Sep 29 2010 jkeating - 0.9.8-4
- Rebuilt for gcc bug 634757
More information about the scm-commits
mailing list