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) | |
download | libbrandt-64689a9083fd11a1e482cc86c0417183cdc76ece.tar.gz libbrandt-64689a9083fd11a1e482cc86c0417183cdc76ece.zip |
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, | |||
200 | struct BRANDT_DescrP *desc; | 200 | struct BRANDT_DescrP *desc; |
201 | struct GNUNET_TIME_Relative until_start; | 201 | struct GNUNET_TIME_Relative until_start; |
202 | 202 | ||
203 | if (0 == num_prices) | 203 | if (!(0 < num_prices)) |
204 | { | ||
205 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, | ||
206 | "libbrandt", | ||
207 | "num_prices must be > 0\n"); | ||
204 | return NULL; | 208 | return NULL; |
209 | } | ||
205 | 210 | ||
206 | desc = GNUNET_new (struct BRANDT_DescrP); | 211 | desc = GNUNET_new (struct BRANDT_DescrP); |
207 | desc->time_start = GNUNET_TIME_absolute_hton (time_start); | 212 | desc->time_start = GNUNET_TIME_absolute_hton (time_start); |