fixing some warning
parent
0e6a73b148
commit
5e206fdd53
|
@ -296,7 +296,7 @@ void UTIL_freeFileNamesTable(FileNamesTable* table) {
|
|||
free(table->fileNames);
|
||||
}
|
||||
|
||||
if(table->buf) {
|
||||
if(table && table->buf) {
|
||||
free(table->buf);
|
||||
}
|
||||
|
||||
|
|
|
@ -151,8 +151,8 @@ int UTIL_readLineFromFile(char* buf, size_t len, FILE* file);
|
|||
/*Note: tableSize is denotes the total capacity of table*/
|
||||
typedef struct
|
||||
{
|
||||
const char** fileNames;
|
||||
char* buf;
|
||||
const char** fileNames = NULL;
|
||||
char* buf = NULL;
|
||||
size_t tableSize;
|
||||
} FileNamesTable;
|
||||
|
||||
|
|
Loading…
Reference in New Issue