Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mcs/class/Mono.Data.Sqlite/Mono.Data.Sqlite_2.0/SQLite3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ internal override CollationSequence GetCollationSequence(SqliteFunction func, In
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;
Expand Down
4 changes: 2 additions & 2 deletions mcs/class/System/Mono.AppleTls/MonoCertificatePal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ public static bool Equals (SafeSecCertificateHandle first, SafeSecCertificateHan

return true;
} finally {
if (firstDataPtr != null)
if (firstDataPtr != IntPtr.Zero)
CFObject.CFRelease (firstDataPtr);
if (secondDataPtr != null)
if (secondDataPtr != IntPtr.Zero)
CFObject.CFRelease (secondDataPtr);
}
}
Expand Down