Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKissaki <kissaki@gmx.de>2011-10-03 16:46:48 +0400
committerKissaki <kissaki@gmx.de>2011-10-09 16:01:58 +0400
commit5fe6801b1b2b652be8bd3244cfc6ae90b7466f16 (patch)
treeb5c961a73d702b67baeff3e67a7db30720f9ab60 /src/mumble/WASAPI.cpp
parent683d39b26b5e8b1bd928b911790dc1d80be874a5 (diff)
handle some cppcheck-found issues:
* uninitialized membervars, * AudioOutput.cpp: fix delete on array to delete[] * OSS.cpp: close file descriptor in false data case * OverlayEditorScene.cpp: rm duplicate logic * fix ifndef to match usage of declared variable * member var initializations * check for null (ds in d3d9 as some lines above), * lower scope of var decl., * swap bufsize check and array dereference so check is before! deref, * initialize member vars in constr.
Diffstat (limited to 'src/mumble/WASAPI.cpp')
-rw-r--r--src/mumble/WASAPI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mumble/WASAPI.cpp b/src/mumble/WASAPI.cpp
index 21ad99725..cdacb7eda 100644
--- a/src/mumble/WASAPI.cpp
+++ b/src/mumble/WASAPI.cpp
@@ -72,6 +72,7 @@ class WASAPIInit : public DeferInit {
WASAPIInputRegistrar *wirReg;
WASAPIOutputRegistrar *worReg;
public:
+ WASAPIInit() : wirReg(NULL), worReg(NULL) { }
void initialize();
void destroy();
};