Merge pull request #2754 from akallabeth/mixed_code

Fixed mixed declarations and code.
This commit is contained in:
Hardening 2015-07-02 09:27:27 +02:00
commit 873a25621d

View File

@ -31,9 +31,10 @@
int WLog_DataMessage_Write(char* filename, void* data, int length)
{
FILE* fp;
fp = fopen(filename, "w+b");
int ret = 0;
fp = fopen(filename, "w+b");
if (!fp)
{
WLog_ERR(TAG, "failed to open file %s", filename);