Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
xmoto
xmoto-0.5.11-pointer-comparison.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xmoto-0.5.11-pointer-comparison.patch of Package xmoto
--- src/WWW.cpp.orig 2011-05-06 14:53:22.000000000 -0500 +++ src/WWW.cpp 2017-02-22 08:43:46.797335810 -0600 @@ -206,7 +206,7 @@ std::string v_www_agent = WWW_AGENT; /* open the file */ - if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) { + if ( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " + v_local_file_tmp); } @@ -320,7 +320,7 @@ LogInfo(std::string("Uploading replay " + p_replayFilename).c_str()); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR")); } @@ -478,7 +478,7 @@ LogInfo("Sending vote"); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV")); } @@ -562,7 +562,7 @@ LogInfo("Sending report"); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR")); } @@ -677,7 +677,7 @@ LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str()); /* open the file */ - if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " + p_answerFile); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor