[vala/0.40] sqlite3: Fix use of possibly unassigned parameter `errmsg'
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] sqlite3: Fix use of possibly unassigned parameter `errmsg'
- Date: Wed, 9 Oct 2019 17:34:00 +0000 (UTC)
commit e47677b8cb4ca2981a0ed64adedac90b7ba53770
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 16 10:46:17 2019 +0200
sqlite3: Fix use of possibly unassigned parameter `errmsg'
vapi/sqlite3.vapi | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index fa65f9046..4af4e3d83 100644
--- a/vapi/sqlite3.vapi
+++ b/vapi/sqlite3.vapi
@@ -36,6 +36,8 @@ namespace Sqlite {
var ec = this._exec (sql, callback, out sqlite_errmsg);
if (&errmsg != null) {
errmsg = sqlite_errmsg;
+ } else {
+ errmsg = null;
}
Sqlite.Memory.free ((void*) sqlite_errmsg);
return ec;
@@ -65,6 +67,8 @@ namespace Sqlite {
if (&errmsg != null) {
errmsg = sqlite_errmsg;
+ } else {
+ errmsg = null;
}
Sqlite.Memory.free ((void*) sqlite_errmsg);
return ec;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]