-log where it failed
This commit is contained in:
parent
81ad77b8dc
commit
c471ae447b
@ -107,16 +107,25 @@ TALER_xtalerbank_account_from_payto (const char *payto)
|
|||||||
if (0 != strncasecmp (payto,
|
if (0 != strncasecmp (payto,
|
||||||
PAYTO "x-taler-bank/",
|
PAYTO "x-taler-bank/",
|
||||||
strlen (PAYTO "x-taler-bank/")))
|
strlen (PAYTO "x-taler-bank/")))
|
||||||
|
{
|
||||||
|
GNUNET_break_op (0);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
beg = strchr (&payto[strlen (PAYTO "x-taler-bank/")],
|
beg = strchr (&payto[strlen (PAYTO "x-taler-bank/")],
|
||||||
'/');
|
'/');
|
||||||
if (NULL == beg)
|
if (NULL == beg)
|
||||||
|
{
|
||||||
|
GNUNET_break_op (0);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
beg++; /* now points to $ACCOUNT */
|
beg++; /* now points to $ACCOUNT */
|
||||||
end = strchr (beg,
|
end = strchr (beg,
|
||||||
'?');
|
'?');
|
||||||
if (NULL == end)
|
if (NULL == end)
|
||||||
|
{
|
||||||
|
GNUNET_break_op (0);
|
||||||
return GNUNET_strdup (beg); /* optional part is missing */
|
return GNUNET_strdup (beg); /* optional part is missing */
|
||||||
|
}
|
||||||
return GNUNET_strndup (beg,
|
return GNUNET_strndup (beg,
|
||||||
end - beg);
|
end - beg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user