summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-08 20:46:05 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-09 05:21:50 +0000
commit5f6af01f13460909e7c3819e14edb2eb04788156 (patch)
tree7254a5ded1b705b182893272c21273a472b9dd79 /crashrep
parent28c251e3cc374314dc19fd772148707b0c711454 (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I19d0070c5dc54c605a7924b750eee1538bed16b3 Reviewed-on: https://gerrit.libreoffice.org/13384 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'crashrep')
-rw-r--r--crashrep/source/win32/soreport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/crashrep/source/win32/soreport.cxx b/crashrep/source/win32/soreport.cxx
index 4a4d2bf07bdc..ee8b7d006a8f 100644
--- a/crashrep/source/win32/soreport.cxx
+++ b/crashrep/source/win32/soreport.cxx
@@ -564,11 +564,11 @@ static string xml_encode( const string &rString )
static size_t fcopy( FILE *fpin, FILE *fpout )
{
- char buffer[1024];
size_t nBytesWritten = 0;
if ( fpin && fpout )
{
+ char buffer[1024];
size_t nBytes;
while ( 0 != (nBytes = fread( buffer, 1, sizeof(buffer), fpin )) )
{