Skip to content

Commit f30bf82

Browse files
committed
Fix compiler warning.
1 parent 5bf532a commit f30bf82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/utils/src/celix_err.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ CelixErrManager& CelixErrManager::getInstance() {
4747
thread_local CelixErrManager instance;
4848
return instance;
4949
}
50-
CelixErrManager::CelixErrManager() {
50+
CelixErrManager::CelixErrManager() : err{nullptr} {
5151
// guarantee true lazy allocation in all tls models to reduce per pthread memory usage
5252
err = static_cast<celix_err_t*>(calloc(1, sizeof(*err)));
5353
if (!err) {

0 commit comments

Comments
 (0)