diff --git a/main.cpp b/main.cpp index 1deaf67..4515d67 100644 --- a/main.cpp +++ b/main.cpp @@ -3,7 +3,7 @@ Copyright 2016-2017 Daniil Gentili (https://daniil.it) This file is part of php-libtgvoip. php-libtgvoip is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the free Software Foundation, either version 3 of the License, or (at your option) any later version. -The PWRTelegram API is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +php-libtgvoip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU General Public License along with php-libtgvoip. If not, see . diff --git a/main.h b/main.h index 710351c..ac39961 100644 --- a/main.h +++ b/main.h @@ -147,13 +147,13 @@ private: std::queue holdFiles; Mutex inputMutex; - FILE *outputFile; + FILE *outputFile = NULL; Mutex outputMutex; size_t readInput; size_t readOutput; int callState = CALL_STATE_NONE; - VoIPController *inst; + VoIPController *inst = NULL; }; #endif