add error log msg
This commit is contained in:
parent
178ca8ba98
commit
64689a9083
7
brandt.c
7
brandt.c
@ -200,8 +200,13 @@ BRANDT_new (BRANDT_CbResult result,
|
|||||||
struct BRANDT_DescrP *desc;
|
struct BRANDT_DescrP *desc;
|
||||||
struct GNUNET_TIME_Relative until_start;
|
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;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
desc = GNUNET_new (struct BRANDT_DescrP);
|
desc = GNUNET_new (struct BRANDT_DescrP);
|
||||||
desc->time_start = GNUNET_TIME_absolute_hton (time_start);
|
desc->time_start = GNUNET_TIME_absolute_hton (time_start);
|
||||||
|
Loading…
Reference in New Issue
Block a user