diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 20:12:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 20:12:24 +0000 |
commit | 1ff199172d2fd4fa8e7f29dbffd10c684e25e3a9 (patch) | |
tree | 7af12cf8f4bf7072d676db294196d065f084f76d /include/dynamic.h | |
parent | 8a21bfcb21094e4ca8440c37dec4a5df3e5bddc7 (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.h | 2 |
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; |