diff options
| author | oy <Tom_Adams@web.de> | 2010-08-05 20:34:16 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-08-05 20:34:16 +0200 |
| commit | 4a365d41b677e495f8658b20bad0a6dff41c747d (patch) | |
| tree | 824cf000c106d47af0eadb7ad420adbda246f3e9 /src/engine/shared/storage.cpp | |
| parent | 665205327d0db5765de4b6d7576f7dad0be305a9 (diff) | |
| download | zcatch-4a365d41b677e495f8658b20bad0a6dff41c747d.tar.gz zcatch-4a365d41b677e495f8658b20bad0a6dff41c747d.zip | |
added fix for crash when there is no datadir
Diffstat (limited to 'src/engine/shared/storage.cpp')
| -rw-r--r-- | src/engine/shared/storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/shared/storage.cpp b/src/engine/shared/storage.cpp index 6f2399d7..e8b0f8bb 100644 --- a/src/engine/shared/storage.cpp +++ b/src/engine/shared/storage.cpp @@ -197,7 +197,7 @@ public: static IStorage *Create(const char *pApplicationName, int NumArgs, const char **ppArguments) { CStorage *p = new CStorage(); - if(p->Init(pApplicationName, NumArgs, ppArguments)) + if(p && p->Init(pApplicationName, NumArgs, ppArguments)) { delete p; p = 0; |