From c9d7511ab0907fe6d7b23474b0ab59012b28624f Mon Sep 17 00:00:00 2001 From: Tomasz Olszak Date: Wed, 2 Sep 2015 14:47:04 +0200 Subject: [PATCH] Fixed crash during first boot. For some reason application couldn't open file in /tmp/. Change-Id: Ibf3eb8ed3b362c00eb6d8dfcf20df9488777c403 --- bus/at-spi-bus-launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c index 7db9702..b6f7f01 100644 --- a/bus/at-spi-bus-launcher.c +++ b/bus/at-spi-bus-launcher.c @@ -61,7 +61,7 @@ FILE *log_file; #ifdef LOGD #undef LOGD #endif -#define LOGD(arg...) do {fprintf(log_file, ##arg);fprintf(log_file, "\n"); fflush(log_file);} while(0) +#define LOGD(arg...) do {if (log_file) {fprintf(log_file, ##arg);fprintf(log_file, "\n"); fflush(log_file);}} while(0) #endif -- 2.7.4