diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-26 15:14:50 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-29 11:28:17 -0600 |
| commit | 0ddf06ff5c6d5991a8d5906acd6e0b687211c47c (patch) | |
| tree | 3572b78a60e206a08eac348ce87fcfeb71dc304f | |
| parent | 482bc88d3be7ab8120a054dec1e339928d5b93f7 (diff) | |
| download | usermoji-0ddf06ff5c6d5991a8d5906acd6e0b687211c47c.tar.xz | |
layers: Abort logging if null debug_report ptr
If a layer were to only be enabled on the device chain
it would not have had a chance to allocate a debug_report
data structure. Just treat such cases as having debug_report
disabled.
| -rw-r--r-- | layers/layer_logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/layer_logging.h b/layers/layer_logging.h index 9370abd5..bcae4d90 100644 --- a/layers/layer_logging.h +++ b/layers/layer_logging.h @@ -226,7 +226,7 @@ static inline void log_msg( const char* format, ...) { - if (!(debug_data->active_flags & msgFlags)) { + if (!debug_data || !(debug_data->active_flags & msgFlags)) { /* message is not wanted */ return; } |
