mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- import a r2799 from upstream:
o) Fixed crash on WriteValue (affected MIPSEL arch and FreeBSD builds) o) http://code.google.com/p/sphinxsearch/source/detail?r=2799 Submitted by: Brian Eng <eng@vadriven.com>
This commit is contained in:
parent
86efbe5118
commit
4c10f7ab82
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275616
@ -9,6 +9,7 @@
|
||||
|
||||
PORTNAME= sphinxsearch
|
||||
PORTVERSION= 2.0.1b
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= textproc databases
|
||||
MASTER_SITES= http://sphinxsearch.com/files/
|
||||
|
20
textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h
Normal file
20
textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/sphinxstd.h~ 2011-04-01 16:50:14.000000000 +0000
|
||||
+++ src/sphinxstd.h 2011-06-15 09:22:46.000000000 +0000
|
||||
@@ -1922,6 +1922,8 @@
|
||||
T ReadValue() const
|
||||
{
|
||||
assert ( m_pValue );
|
||||
+ if (!m_pValue)
|
||||
+ return 0;
|
||||
Lock();
|
||||
T val = *m_pValue;
|
||||
Unlock();
|
||||
@@ -1930,6 +1932,8 @@
|
||||
void WriteValue ( const T& tNewValue )
|
||||
{
|
||||
assert ( m_pValue );
|
||||
+ if (!m_pValue)
|
||||
+ return;
|
||||
Lock();
|
||||
*m_pValue = tNewValue;
|
||||
Unlock();
|
Loading…
Reference in New Issue
Block a user