summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2017-10-07 16:42:52 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2017-10-07 16:42:52 -0400
commit688f3c389edcf5009d8f5ba5b256a76b75c09ee0 (patch)
tree491124951d4b6bfb45d3102a82d8eb9cbf7d11c4 /dev-db/pgadmin3/files
parentdev-db/postgresql: Improved systemd support (diff)
downloadgentoo-688f3c389edcf5009d8f5ba5b256a76b75c09ee0.tar.gz
gentoo-688f3c389edcf5009d8f5ba5b256a76b75c09ee0.tar.bz2
gentoo-688f3c389edcf5009d8f5ba5b256a76b75c09ee0.zip
dev-db/pgadmin3: Bump to 1.22.2, fix startup crash
Bump to version 1.22.2. Also fix crash on start up when using GCC 6. Thanks torto09. Gentoo-Bug: https://bugs.gentoo.org/629422 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-db/pgadmin3/files')
-rw-r--r--dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch b/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch
new file mode 100644
index 000000000000..1396f8de8aab
--- /dev/null
+++ b/dev-db/pgadmin3/files/pgadmin3-gcc6-null-pointer.patch
@@ -0,0 +1,11 @@
+--- a/pgadmin/frm/plugins.cpp
++++ b/pgadmin/frm/plugins.cpp
+@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p
+ {
+ // If we need a specific server type, we can't enable unless
+ // we have a connection.
+- if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK))
++ if (!obj || !obj->GetConnection() || !(obj->GetConnection()->GetStatus() == PGCONN_OK))
+ return false;
+
+ // Get the server type.