Fix Coverity patch

Resolves: #981060
This commit is contained in:
Honza Horák 2013-07-04 12:16:30 +02:00
parent babe790069
commit e8a7a9c65e
2 changed files with 7 additions and 3 deletions

View File

@ -9,7 +9,7 @@ diff -Naur unixODBC-2.3.1.orig/DriverManager/SQLGetCursorName.c unixODBC-2.3.1/D
thread_protect( SQL_HANDLE_STMT, statement );
- if ( !buffer_length < 0 )
+ if ( !(buffer_length < 0) )
+ if ( buffer_length < 0 )
{
dm_log_write( __FILE__,
__LINE__,
@ -21,7 +21,7 @@ diff -Naur unixODBC-2.3.1.orig/DriverManager/SQLGetCursorNameW.c unixODBC-2.3.1/
thread_protect( SQL_HANDLE_STMT, statement );
- if ( !buffer_length < 0 )
+ if ( !(buffer_length < 0) )
+ if ( buffer_length < 0 )
{
dm_log_write( __FILE__,
__LINE__,

View File

@ -1,7 +1,7 @@
Summary: A complete ODBC driver manager for Linux
Name: unixODBC
Version: 2.3.1
Release: 4%{?dist}
Release: 5%{?dist}
Group: System Environment/Libraries
URL: http://www.unixODBC.org/
# Programs are GPL, libraries are LGPL, except News Server library is GPL.
@ -151,6 +151,10 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%changelog
* Thu Jul 4 2013 Honza Horak <hhorak@redhat.com> 2.3.1-5
- Fix Coverity patch
Resolves: #981060
* Tue Mar 19 2013 Tom Lane <tgl@redhat.com> 2.3.1-4
- Fix assorted small bugs found by Coverity
Related: #760877