diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-14 15:12:16 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-16 13:31:15 +0200 |
commit | da1b20cd4f7b13121434d32817886d7803fd6052 (patch) | |
tree | f8507bd6487bf12eccbedac5d5e0146cfce09e00 /src | |
parent | 700297528cb0894524b8d188ebd3377af27c488d (diff) |
logging.c: assert category_token allocation (CID #57871)
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c index 35746e9b..b96e64a1 100644 --- a/src/logging.c +++ b/src/logging.c @@ -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; |