[libgda] Fixing wrong pointer cast
- From: Pavlo Solntsev <psolntsev src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fixing wrong pointer cast
- Date: Sat, 13 Jun 2020 03:53:34 +0000 (UTC)
commit fac75767fce88b4d7c831ab1a396c7546b4d69a0
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Tue Jun 2 00:45:35 2020 -0500
Fixing wrong pointer cast
This issue could be related to !194
The underlying GSlist contains gchar* elements but it is cast to GdaMetaStoreChange*.
tests/meta-store/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/meta-store/common.c b/tests/meta-store/common.c
index 0d0812f57..29d0b96d1 100644
--- a/tests/meta-store/common.c
+++ b/tests/meta-store/common.c
@@ -220,7 +220,7 @@ common_declare_expected_change (const gchar *table_name, GdaMetaStoreChangeType
/* clear any remaining changes not handled */
if (expected_changes) {
/* expected more changes */
- gchar *estr = stringify_a_change ((GdaMetaStoreChange *) expected_changes->data);
+ gchar *estr = (gchar *) expected_changes->data;
g_print ("Received no change but EXPECTED GdaMetaStoreChange: %s", estr);
exit (EXIT_FAILURE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]