wrong return value check
|Assignee:||Wilson Snyder||% Done:||
In VPreProc.cpp: function VPreProcImp::readWholefile
The "open" function returns -1 when failing to open a file. However, "if(!fd)" will fail to check the error.
I found this problem as I am directly using the preprocessor in my own project. Running with the perl wrapper will not show any problem because, to my understanding, perl will first check the file existence.
Updated by Wilson Snyder 12 months ago
- Status changed from New to Resolved
- Assignee set to Wilson Snyder
Good point, thanks for reporting it. Fixed in git towards 3.316+.
Also available in: Atom