diff options
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 69b9e3a..1fc1aef 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -1176,14 +1176,11 @@ int gprs_rlcmac_tbf::set_tlli_from_ul(uint32_t new_tlli) const char *tbf_name(gprs_rlcmac_tbf *tbf) { - return tbf->name(); + return tbf ? tbf->name() : "(no TBF)"; } const char *gprs_rlcmac_tbf::name() const { - if (this == NULL) - return "(no TBF)"; - snprintf(m_name_buf, sizeof(m_name_buf) - 1, "TBF(TFI=%d TLLI=0x%08x DIR=%s STATE=%s%s)", m_tfi, tlli(), |