diff options
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r-- | src/statistics/statistics_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 305c6f3a5..7bdd6a5c6 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -929,6 +929,9 @@ GNUNET_STATISTICS_create (const char *subsystem, | |||
929 | { | 929 | { |
930 | struct GNUNET_STATISTICS_Handle *ret; | 930 | struct GNUNET_STATISTICS_Handle *ret; |
931 | 931 | ||
932 | if (GNUNET_YES == | ||
933 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "statistics", "DISABLE")) | ||
934 | return NULL; | ||
932 | GNUNET_assert (NULL != subsystem); | 935 | GNUNET_assert (NULL != subsystem); |
933 | GNUNET_assert (NULL != cfg); | 936 | GNUNET_assert (NULL != cfg); |
934 | ret = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_Handle)); | 937 | ret = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_Handle)); |