fixed uninitialised argument bug (clang static analysis)