diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 12:53:19 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-12-02 12:53:19 +0100 |
commit | 64689a9083fd11a1e482cc86c0417183cdc76ece (patch) | |
tree | 03e72daf21531c66aa5774744b471fe0f9b04994 | |
parent | 178ca8ba9861f3779633902ddae9a60eaa419dff (diff) |
add error log msg
-rw-r--r-- | brandt.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -200,8 +200,13 @@ BRANDT_new (BRANDT_CbResult result, struct BRANDT_DescrP *desc; struct GNUNET_TIME_Relative until_start; - if (0 == num_prices) + if (!(0 < num_prices)) + { + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, + "libbrandt", + "num_prices must be > 0\n"); return NULL; + } desc = GNUNET_new (struct BRANDT_DescrP); desc->time_start = GNUNET_TIME_absolute_hton (time_start); |