Check for non-zero payload in log

This commit is contained in:
Ismael Gomez 2018-02-01 20:16:35 +01:00
parent 36358fa34b
commit 5eeaf52990
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ void log_filter::all_log(srslte::LOG_LEVEL_ENUM level,
ss << std::endl;
}
if (hex_limit > 0) {
if (hex_limit > 0 && hex && size > 0) {
ss << hex_string(hex, size);
}
str_ptr s_ptr(new std::string(ss.str()));