summaryrefslogtreecommitdiff
path: root/include/dynamic.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-07 20:12:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-07 20:12:24 +0000
commit1ff199172d2fd4fa8e7f29dbffd10c684e25e3a9 (patch)
tree7af12cf8f4bf7072d676db294196d065f084f76d /include/dynamic.h
parent8a21bfcb21094e4ca8440c37dec4a5df3e5bddc7 (diff)
Added some hax :( to prevent invalid symbols. It seems that instead of returning NULL, its setting a pointer to -1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4770 e03df62e-2008-0410-955e-edbf42e46eb7
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;