summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-01 19:12:26 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-01 19:12:26 +0200
commit0a4ebd898af53ee60c9cad0bf1dddbab09582754 (patch)
tree0e1fe1773ae6a9031afac658fe6abc777932d7fe /crashrep
parentc90e0ea708604309c03f2c0e15c609e85407336c (diff)
Declare and use the boolean variable for the return
Diffstat (limited to 'crashrep')
-rw-r--r--crashrep/source/unx/main.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx
index ed257e17fe81..f9a6320fb272 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 )