aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-13 10:24:07 -0500
committerDavid Robillard <d@drobilla.net>2015-11-13 10:24:07 -0500
commitbb94e4c2b4967c67cec479d3b194840aed8e9a6b (patch)
tree0b73155f343e282b8066914f8180608faf9bd658
parentb4ac2de745fec00bd7f45be9fca386c13775685e (diff)
downloadlv2-bb94e4c2b4967c67cec479d3b194840aed8e9a6b.tar.xz
Make log functions safe to call with unset logger
-rw-r--r--lv2/lv2plug.in/ns/ext/log/logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2/lv2plug.in/ns/ext/log/logger.h b/lv2/lv2plug.in/ns/ext/log/logger.h
index 094dd42..62de1ce 100644
--- a/lv2/lv2plug.in/ns/ext/log/logger.h
+++ b/lv2/lv2plug.in/ns/ext/log/logger.h
@@ -81,7 +81,7 @@ lv2_log_vprintf(LV2_Log_Logger* logger,
const char* fmt,
va_list args)
{
- if (logger->log) {
+ if (logger && logger->log) {
return logger->log->vprintf(logger->log->handle, type, fmt, args);
} else {
return vfprintf(stderr, fmt, args);