diff --git a/src/common/logging.hpp b/src/common/logging.hpp index 83ce699..447ff31 100644 --- a/src/common/logging.hpp +++ b/src/common/logging.hpp @@ -105,6 +105,7 @@ class Logger { char buf[1024]; memset(buf, 0, 1024*sizeof(char)); va_list args; + va_start(args, fmt); vsnprintf(buf, 1024, fmt, args); for (int i = 0; i < this->fd_count ; i++) { fprintf(this->fds[i], "[%s]\t%s\n", this->mapLevel(level), buf);