Kaydet (Commit) 0a4ebd89 authored tarafından Julien Nabet's avatar Julien Nabet

Declare and use the boolean variable for the return

üst c90e0ea7
...@@ -538,19 +538,20 @@ bool send_crash_report( const boost::unordered_map< string, string >& rSettings ...@@ -538,19 +538,20 @@ bool send_crash_report( const boost::unordered_map< string, string >& rSettings
static bool append_file( const char *filename, string& rString ) static bool append_file( const char *filename, string& rString )
{ {
char buf[1024]; char buf[1024];
bool bSuccess = false;
FILE *fp = fopen( filename, "r" ); FILE *fp = fopen( filename, "r" );
if ( fp ) if ( fp )
{ {
bSuccess = true;
while (fgets(buf, sizeof(buf), fp) != NULL) while (fgets(buf, sizeof(buf), fp) != NULL)
{ {
rString.append( buf ); rString.append( buf );
} }
fclose( fp ); fclose( fp );
bSuccess = true;
} }
return true; return bSuccess;
} }
string crash_get_details( const boost::unordered_map< string, string >& rSettings ) string crash_get_details( const boost::unordered_map< string, string >& rSettings )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment