diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-09 10:52:19 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-09 10:52:19 +0100 |
commit | 916423ef9585c7042730fdb17f55afc376565d32 (patch) | |
tree | e85bb297c99781fdea4cd61b39bf3e645a2f12ba /include/osmocom/gprs | |
parent | 834819471a024a98cf6062f1e20c75a9b9e26f88 (diff) |
stats: Fix name prefix handling
Currently the having an unset prefix leads to an abort() in the
statsd reporter due to an fprintf format string error. In addition
the prefix cannot be reset to its initial state (NULL) by using 'no
prefix', which just sets the prefix to the empty string, causing a
single leading dot to appear in front of the name.
This commit changes the implemenation to consistly use NULL for
the unset name prefix ('no prefix') and to handle this case correctly
in the statsd reporter.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom/gprs')
0 files changed, 0 insertions, 0 deletions