26 lines
855 B
Diff
26 lines
855 B
Diff
|
|
From 2ca40d1732bb233a8a6da59a3413abb92aebf8e1 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Zero0one1 <summerlinasity@gmail.com>
|
||
|
|
Date: Fri, 2 Apr 2021 13:48:17 +0800
|
||
|
|
Subject: [PATCH] Leave the used error_msg unchanged
|
||
|
|
|
||
|
|
Conflict:NA
|
||
|
|
Reference:https://github.com/hughsie/colord/pull/130/commits/2ca40d1732bb233a8a6da59a3413abb92aebf8e1
|
||
|
|
---
|
||
|
|
src/cd-device-db.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/src/cd-device-db.c b/src/cd-device-db.c
|
||
|
|
index 8da1a4a9..3ae44ef2 100644
|
||
|
|
--- a/src/cd-device-db.c
|
||
|
|
+++ b/src/cd-device-db.c
|
||
|
|
@@ -79,7 +79,7 @@ cd_device_db_load (CdDeviceDb *ddb,
|
||
|
|
|
||
|
|
/* check devices */
|
||
|
|
rc = sqlite3_exec (priv->db, "SELECT * FROM devices LIMIT 1",
|
||
|
|
- NULL, NULL, NULL);
|
||
|
|
+ NULL, NULL, &error_msg);
|
||
|
|
if (rc != SQLITE_OK) {
|
||
|
|
g_debug ("CdDeviceDb: creating table to repair: %s", error_msg);
|
||
|
|
sqlite3_free (error_msg);
|
||
|
|
|