Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Bogatov <egorbo@gmail.com>2018-07-30 12:42:52 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-07-30 12:42:52 +0300
commit6fb14f641bfb0c408f293e3e42a1dc950023ca1a (patch)
tree5ed8a2f28fd79406bc259e738b8f766efde77f22 /mcs/class/Mono.Data.Sqlite
parent124febb1c12e6768d7008df2847ad48c0315641b (diff)
Fix comparison of IntPtr with null (#9800)
See dotnet/corefx#31457
Diffstat (limited to 'mcs/class/Mono.Data.Sqlite')
-rw-r--r--mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs
index df1f227cd53..9e7c766333b 100644
--- a/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs
+++ b/mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs
@@ -804,7 +804,7 @@ namespace Mono.Data.Sqlite
int enc;
IntPtr p = UnsafeNativeMethods.sqlite3_context_collseq(context, out type, out enc, out len);
- if (p != null) seq.Name = UTF8ToString(p, len);
+ if (p != IntPtr.Zero) seq.Name = UTF8ToString(p, len);
seq.Type = (CollationTypeEnum)type;
seq._func = func;
seq.Encoding = (CollationEncodingEnum)enc;