handlers.c: add comment on openFile() about freeing fileName

This commit is contained in:
dogeystamp 2022-10-29 20:17:39 -04:00
parent 9df7ce934c
commit 036206d2be
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ FILE *
openFile(const char *folder, char *fileName, char *fileExt) openFile(const char *folder, char *fileName, char *fileExt)
{ {
// [folder]/[fileName][fileExt] // [folder]/[fileName][fileExt]
// caller's responsibility to sanitize names // caller's responsibility to sanitize names, but frees fileName
if (!folder) { if (!folder) {
logMsg(1, "NULL folder"); logMsg(1, "NULL folder");

View File

@ -13,6 +13,7 @@ enum fields {
FIELD_END FIELD_END
}; };
enum numFields { enum numFields {
// currently unimplemented
NUM_ENCLOSURE_SIZE, NUM_ENCLOSURE_SIZE,
NUM_END NUM_END