gana

GNUnet Assigned Numbers Authority
Log | Files | Refs | README | LICENSE

commit 0b778cdac372d0b75f3b64501a15a21c9c57f36e
parent 26c28e8d30ec14ee3e0c32115d6eb9b3f180c65f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 25 Aug 2020 21:12:26 +0200

never return NULL

Diffstat:
Mgnu-taler-error-codes/c.footer | 4++--
Mgnu-taler-error-codes/h.footer | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu-taler-error-codes/c.footer b/gnu-taler-error-codes/c.footer @@ -5,7 +5,7 @@ * Returns a hint for a given error code. * * @param ec the error code. - * @return the hint if it could be found, otherwise NULL. + * @return the hint if it could be found, otherwise "<no hint found>". */ const char * TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec) @@ -29,5 +29,5 @@ TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec) return code_hint_pairs[mid].hint; } } - return NULL; + return "<no hint found>"; } diff --git a/gnu-taler-error-codes/h.footer b/gnu-taler-error-codes/h.footer @@ -7,7 +7,7 @@ * Returns a hint for a given error code. * * @param ec the error code. - * @return the hint if it could be found, otherwise NULL. + * @return the hint if it could be found, otherwise "<no hint found>" */ const char * TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec);