This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".
The branch, master has been updated
via d38b92e972be130df3e6c908fb7e7bf1729ab7fb (commit)
from 0a4a6c120040c8dd0744f745e08f24624df62647 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/osmo-pcu/commit/?id=d38b92e972be130df3e6c908fb7e7bf…
commit d38b92e972be130df3e6c908fb7e7bf1729ab7fb
Author: Alexander Couzens <lynxis(a)fe80.eu>
Date: Sun Aug 21 19:38:30 2016 +0200
tbf: add llc_queue_size() to check llc_queue is valid before calling size()
gcc6 is optimizing if (!this) {CODE} as this is assumed to never be a
std::nullptr here. Move the null check to the caller. In preparation of
removing the check within llc_queue->size(), all callers must check the object
before calling it. Make sure of that: make the llc_queue() access function
protected and offer only a public llc_queue_size() function that incorporates
the NULL check. All current callers are only interested in the
llc_queue_size().
Tweaked-by: nhofmeyr
Change-Id: I88cc3180f8f86785e3f07981895dabddf50b60a2
-----------------------------------------------------------------------
Summary of changes:
src/tbf.cpp | 7 +++++++
src/tbf.h | 6 ++++--
src/tbf_dl.cpp | 8 ++++----
3 files changed, 15 insertions(+), 6 deletions(-)
hooks/post-receive
--
UNNAMED PROJECT