diff options
author | Daniel Gerzo <danger@FreeBSD.org> | 2011-06-15 09:30:35 +0000 |
---|---|---|
committer | Daniel Gerzo <danger@FreeBSD.org> | 2011-06-15 09:30:35 +0000 |
commit | 4c10f7ab8275fbfb2ee4a4f40bc391708f50a99f (patch) | |
tree | 6fbbeba841aa2c52e78872ca5a2f64a2039ebdc8 /textproc/sphinxsearch-devel/files | |
parent | 86efbe511820aec81d69bdb9e4a357a1914c9dc3 (diff) |
Notes
Diffstat (limited to 'textproc/sphinxsearch-devel/files')
-rw-r--r-- | textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h b/textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h new file mode 100644 index 000000000000..27c28f4b79b1 --- /dev/null +++ b/textproc/sphinxsearch-devel/files/patch-src-sphinxstd.h @@ -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(); |