From: Maxim Mamontov Date: Sat, 13 Aug 2011 16:16:46 +0000 (+0300) Subject: Add some assertions X-Git-Tag: 2.408-alpha~26 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/cbc0dcab9b85503926c58e82933a6148e81115f5 Add some assertions --- 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;