Fixed mixed declarations and code.

This commit is contained in:
Armin Novak 2015-07-01 16:20:56 +02:00
parent 59e2801848
commit 78eeb861d5

View File

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