]> sigrok.org Git - pulseview.git/commit
Logging: avoid "cb was NULL" warning message during logging shutdown
authorGerhard Sittig <redacted>
Tue, 18 Sep 2018 16:34:42 +0000 (18:34 +0200)
committerUwe Hermann <redacted>
Tue, 18 Sep 2018 20:51:36 +0000 (22:51 +0200)
commite431acda693abc3d0cd339f95a95220c02ae13bd
tree32c8e5b2b6a04ba9b23f708488cc72286181eb72
parent67fb15bfd6f26e45cfd4486d473fda688ae8b2de
Logging: avoid "cb was NULL" warning message during logging shutdown

Commit 4b9234088f56 introduced the fetch and restore of the libraries'
default log routines in addition to the registration of a Pulseview
application's log routine. Some code paths in main() could result in
unexpected "cb was NULL" messages on stderr, when logging::init() did
not execute but the destructor tried to restore a handler which was not
fetched before. Silence the error message.
pv/logging.cpp