Mercurial > mm7
comparison MapInfo.cpp @ 2369:bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
author | Grumpy7 |
---|---|
date | Mon, 12 May 2014 01:50:32 +0200 |
parents | ddb803517a48 |
children | f4af3b203f65 |
comparison
equal
deleted
inserted
replaced
2368:91b6c0a338ad | 2369:bddcaf5d5db2 |
---|---|
22 unsigned int temp_str_len; | 22 unsigned int temp_str_len; |
23 char* tmp_pos; | 23 char* tmp_pos; |
24 int decode_step; | 24 int decode_step; |
25 // int item_counter; | 25 // int item_counter; |
26 | 26 |
27 if ( pMapStatsTXT_Raw ) | 27 free(pMapStatsTXT_Raw); |
28 free(pMapStatsTXT_Raw); | |
29 pMapStatsTXT_Raw = NULL; | |
30 pMapStatsTXT_Raw = (char *)pEvents_LOD->LoadRaw("MapStats.txt", 0); | 28 pMapStatsTXT_Raw = (char *)pEvents_LOD->LoadRaw("MapStats.txt", 0); |
31 strtok(pMapStatsTXT_Raw, "\r"); | 29 strtok(pMapStatsTXT_Raw, "\r"); |
32 strtok(NULL, "\r"); | 30 strtok(NULL, "\r"); |
33 strtok(NULL, "\r"); | 31 strtok(NULL, "\r"); |
34 | 32 |