Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71a86444 authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Android Git Automerger
Browse files

am 4e0a2523: Merge "liblog: reject empty logging messages"

* commit '4e0a2523':
  liblog: reject empty logging messages
parents 99063631 4e0a2523
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -178,6 +178,10 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr)
    static pid_t last_pid = (pid_t) -1;
    static atomic_int_fast32_t dropped;

    if (!nr) {
        return -EINVAL;
    }

    if (last_uid == AID_ROOT) { /* have we called to get the UID yet? */
        last_uid = getuid();
    }