diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 17:37:07 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 17:37:07 +0200 |
commit | 040b8f46cc3757e03ebd9c8462653949efeda7b5 (patch) | |
tree | c94638d0e8c726132f3e29ec2f076120ba3595e9 /desktop | |
parent | ebbcd842f6723819f49d63f414fd2ad7f6a89ecf (diff) |
Some cppcheck cleaning
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/appinit.cxx | 2 | ||||
-rwxr-xr-x | desktop/unx/source/pagein.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index be1d1502f683..13624379bf5d 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -402,7 +402,7 @@ void Desktop::CreateTemporaryDirectory() else aMsg = OUString( RTL_CONSTASCII_USTRINGPARAM( "The path manager is not available.\n" )); e.Message = aMsg + e.Message; - throw e; + throw; } // remove possible old directory and base directory diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c index 947b4b7375d5..90392b790881 100755 --- a/desktop/unx/source/pagein.c +++ b/desktop/unx/source/pagein.c @@ -108,6 +108,7 @@ int pagein_execute (int argc, char **argv) if ((argv[i][0] == '@') && ((fp = fopen (argv[i], "r")) == 0)) { char fullpath[4096]; + memset(fullpath, 0, sizeof(fullpath)); char *path; strncpy (fullpath, argv[i] + 1, 3000); if (!(path = strrchr (fullpath, '/'))) |