Skip to content

Replace this call to the non reentrant function "localtime" by a call to "localtime_r". #12

@mccaffers

Description

@mccaffers

source/databaseConnection.cpp

auto tm = *std::localtime(&time_t);

Replace this call to the non reentrant function "localtime" by a call to "localtime_r".

A function is called reentrant if it can be interrupted in the middle of its execution and then safely called again ("re-entered") before its previous invocations complete execution.

It is especially important that multi-threaded applications do not call the same non-reentrant function from different threads.

Metadata

Metadata

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions