void-packages/srcpkgs/pgadmin3/patches/pgadmin3-fix-segfault.patch
Gerardo Di Iorio 13caff3820 pgadmin3: fix startup and distfile
Signed-off-by: Gerardo Di Iorio <arete74@gmail.com>
2017-04-27 23:27:02 +02:00

12 lines
417 B
Diff

--- pgadmin/frm/plugins.cpp
+++ 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.