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