merge from open-source master
[android-sdk/platform-bionic.git] / libc / bionic / logd_write.c
index 2c5bf42f34f18ac8d199a21617d4162c5d21db47..618160faa7a313c46ad21d4e649e49f0f267fd87 100644 (file)
@@ -114,6 +114,8 @@ static int __write_to_log_init(log_id_t log_id, struct iovec *vec)
             (fd < 0) ? __write_to_log_null : __write_to_log_kernel;
         log_channels[log_id].fd = fd;
 
+        log_channels[log_id].fd = fd;
+
         pthread_mutex_unlock(&log_init_lock);
 
         return log_channels[log_id].logger(log_id, vec);