https://gitlab.synchro.net/main/sbbs/-/commit/cef55e67e3685fb707dbf72d
Modified Files:
src/sbbs3/js_global.cpp js_system.cpp jsexec.cpp mailsrvr.cpp websrvr.cpp
Log Message:
Use list zero initialization for newly C++ files
Doing x = {0} is a copy list initialization that does a copy of the
zero, which can potentially do weird things with non-PODs.
Just using = {} would copy zero elements and zero-initialize the rest,
but it flirts with the most vexing parse.
Instead, just use x {};
I've left a bunch of similar things in other files though.
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net