Fixed mixed declarations and code.
This commit is contained in:
parent
59e2801848
commit
78eeb861d5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user