diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-10-11 11:13:03 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-10-11 11:15:47 +0300 |
commit | 62fddc0c00c8e960642d2c2a426852f77147ce2e (patch) | |
tree | 623d21b1ff5e21e1d9c310ac3a9627775cfeb04b /sal | |
parent | only access first element if vector is not empty, fdo#55734 (diff) | |
download | core-62fddc0c00c8e960642d2c2a426852f77147ce2e.tar.gz core-62fddc0c00c8e960642d2c2a426852f77147ce2e.zip |
WaE: 'fn' may be used uninitialized in this function
Change-Id: Ib918bd537b30fe5dc48396fc7e952147003e3b19
Diffstat (limited to 'sal')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index 346373f03584..3d4dadc1f417 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -224,7 +224,7 @@ SAL_IMPLEMENT_MAIN() { modules.push_back(new osl::Module(lib, SAL_LOADMODULE_GLOBAL)); oslGenericFunction fn = modules.back().getFunctionSymbol(sym); #else - oslGenericFunction fn; + oslGenericFunction fn = 0; if (sym == "unoexceptionprotector") fn = (oslGenericFunction) unoexceptionprotector; else if (sym == "unobootstrapprotector") |