unlinker icon indicating copy to clipboard operation
unlinker copied to clipboard

fixed from PVS-Studio

Open ip-gpu opened this issue 8 years ago • 1 comments

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio. Warnings:

V668 There is no sense in testing the 'Vector' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. vector.h 59 V668 There is no sense in testing the 'newindex' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. vector.h 1230 V668 There is no sense in testing the 'section' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. ini.cpp 118 V668 There is no sense in testing the 'entry' pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error. ini.cpp 150

ip-gpu avatar Nov 01 '17 19:11 ip-gpu

May have been better using std::nothrow in these instances?

MrSapps avatar Jul 05 '18 12:07 MrSapps