summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'update.c')
-rw-r--r--update.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/update.c b/update.c
index 5fa7b58..d307f8b 100644
--- a/update.c
+++ b/update.c
@@ -1395,6 +1395,9 @@ int cEpgd::checkProcedure(const char* name, cDBS::ProcType type, cDbProcedure* f
asprintf(&param, "%s.md5", name);
p = fp ? fp : new cDbProcedure(connection, name, type);
+ if (!connection || !connection->getMySql())
+ return fail;
+
if (p->created())
{
getParameter("epgd", param, md5);