[Libreoffice-commits] .: crashrep/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sun May 1 10:13:19 PDT 2011
crashrep/source/unx/main.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit f735f6ff2d4df5e570714c53eab91da1b927cb10
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun May 1 19:12:26 2011 +0200
Declare and use the boolean variable for the return
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx
index 5426b13..3fb76de 100644
--- a/crashrep/source/unx/main.cxx
+++ b/crashrep/source/unx/main.cxx
@@ -538,19 +538,20 @@ bool send_crash_report( const boost::unordered_map< string, string >& rSettings
static bool append_file( const char *filename, string& rString )
{
char buf[1024];
+ bool bSuccess = false;
FILE *fp = fopen( filename, "r" );
if ( fp )
{
- bSuccess = true;
while (fgets(buf, sizeof(buf), fp) != NULL)
{
rString.append( buf );
}
fclose( fp );
+ bSuccess = true;
}
- return true;
+ return bSuccess;
}
string crash_get_details( const boost::unordered_map< string, string >& rSettings )
More information about the Libreoffice-commits
mailing list