Merge "liblog: fix an undefined-behavor in __write_to_log_daemon()"