logging.c: assert category_token allocation (CID #57871)

This commit is contained in:
Neels Hofmeyr 2016-04-14 15:12:16 +02:00 committed by Harald Welte
parent 700297528c
commit da1b20cd4f
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ void log_parse_category_mask(struct log_target* target, const char *_mask)
target->categories[i].enabled = 0;
category_token = strtok(mask, ":");
OSMO_ASSERT(category_token);
do {
for (i = 0; i < osmo_log_info->num_cat; ++i) {
size_t length, cat_length;