diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-25 21:12:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-25 21:12:26 +0200 |
commit | 0b778cdac372d0b75f3b64501a15a21c9c57f36e (patch) | |
tree | 977cb9340c47de7f2bc67e6a7839eb36f2e03e83 /gnu-taler-error-codes/c.footer | |
parent | 26c28e8d30ec14ee3e0c32115d6eb9b3f180c65f (diff) | |
download | gana-0b778cdac372d0b75f3b64501a15a21c9c57f36e.tar.gz gana-0b778cdac372d0b75f3b64501a15a21c9c57f36e.zip |
never return NULL
Diffstat (limited to 'gnu-taler-error-codes/c.footer')
-rw-r--r-- | gnu-taler-error-codes/c.footer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu-taler-error-codes/c.footer b/gnu-taler-error-codes/c.footer index c348200..d6897b6 100644 --- a/gnu-taler-error-codes/c.footer +++ b/gnu-taler-error-codes/c.footer | |||
@@ -5,7 +5,7 @@ | |||
5 | * Returns a hint for a given error code. | 5 | * Returns a hint for a given error code. |
6 | * | 6 | * |
7 | * @param ec the error code. | 7 | * @param ec the error code. |
8 | * @return the hint if it could be found, otherwise NULL. | 8 | * @return the hint if it could be found, otherwise "<no hint found>". |
9 | */ | 9 | */ |
10 | const char * | 10 | const char * |
11 | TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec) | 11 | TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec) |
@@ -29,5 +29,5 @@ TALER_ErrorCode_get_hint (enum TALER_ErrorCode ec) | |||
29 | return code_hint_pairs[mid].hint; | 29 | return code_hint_pairs[mid].hint; |
30 | } | 30 | } |
31 | } | 31 | } |
32 | return NULL; | 32 | return "<no hint found>"; |
33 | } | 33 | } |