From cbc0dcab9b85503926c58e82933a6148e81115f5 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 13 Aug 2011 19:16:46 +0300 Subject: [PATCH] Add some assertions --- projects/stargazer/plugins/other/smux/smux.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/stargazer/plugins/other/smux/smux.cpp b/projects/stargazer/plugins/other/smux/smux.cpp index ac77ce6e..1300452f 100644 --- a/projects/stargazer/plugins/other/smux/smux.cpp +++ b/projects/stargazer/plugins/other/smux/smux.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -136,6 +137,12 @@ return smuxSettings.ParseSettings(settings); int SMUX::Start() { +assert(users != NULL && "users not NULL"); +assert(tariffs != NULL && "tariffs not NULL"); +assert(admins != NULL && "admins not NULL"); +assert(services != NULL && "services not NULL"); +assert(corporations != NULL && "corporations not NULL"); + if (PrepareNet()) return -1; -- 2.44.2