summaryrefslogtreecommitdiff
path: root/include/dynamic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dynamic.h')
-rw-r--r--include/dynamic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dynamic.h b/include/dynamic.h
index 937005e11..98deaf761 100644
--- a/include/dynamic.h
+++ b/include/dynamic.h
@@ -67,7 +67,7 @@ template <class T> class DLLFactory : public DLLFactoryBase
public:
DLLFactory(const char *fname, const char *func_name=0) : DLLFactoryBase(fname,func_name)
{
- if (factory_func)
+ if (!err && factory_func)
factory = (T*)factory_func();
else
factory = 0;