Fixed crash during first boot. 90/49790/2
authorTomasz Olszak <t.olszak@samsung.com>
Wed, 2 Sep 2015 12:47:04 +0000 (14:47 +0200)
committerTomasz Olszak <t.olszak@samsung.com>
Fri, 23 Oct 2015 14:56:27 +0000 (16:56 +0200)
For some reason application couldn't open file in /tmp/.

Change-Id: Ibf3eb8ed3b362c00eb6d8dfcf20df9488777c403

bus/at-spi-bus-launcher.c

index 7db9702..b6f7f01 100644 (file)
@@ -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