diff options
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l index bd0210f..60060e5 100644 --- a/src/config.l +++ b/src/config.l @@ -2850,12 +2850,12 @@ static QCString configFileToString(const char *name) int fsize=f.size(); QCString contents(fsize+2); f.readBlock(contents.data(),fsize); + f.close(); if (fsize==0 || contents[fsize-1]=='\n') contents[fsize]='\0'; else contents[fsize]='\n'; // to help the scanner contents[fsize+1]='\0'; - f.close(); return contents; } } |