summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-23 08:31:01 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-23 08:31:01 +0200
commitbbce483ba0fc2b0aa832c47bfa949481eea3bf98 (patch)
tree54f9692c2772a2f4e9efb70cbf1273839519260d /src
parent8590e6b309df2736835673eb427673c099fc3f08 (diff)
downloadexchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.tar.gz
exchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.tar.bz2
exchange-bbce483ba0fc2b0aa832c47bfa949481eea3bf98.zip
-handle NULL nicely
Diffstat (limited to 'src')
-rw-r--r--src/util/iban.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/iban.c b/src/util/iban.c
index 7cf92849..efd8c428 100644
--- a/src/util/iban.c
+++ b/src/util/iban.c
@@ -226,6 +226,8 @@ TALER_iban_validate (const char *iban)
unsigned int i;
unsigned int j;
+ if (NULL == iban)
+ return GNUNET_strdup ("(null) is not a valid IBAN");
len = strlen (iban);
if (len < 4)
return GNUNET_strdup ("IBAN number too short to be valid");