From eb354680b45f167ded8b9a6a01090f34d88775f3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 15 Jun 2017 22:07:10 +0200 Subject: [PATCH] fix compiler warning due to possibly unknown switch enum values being handled poorly --- src/bank-lib/bank_api_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bank-lib/bank_api_common.c b/src/bank-lib/bank_api_common.c index e68ba41b5..738d2a5b8 100644 --- a/src/bank-lib/bank_api_common.c +++ b/src/bank-lib/bank_api_common.c @@ -80,13 +80,12 @@ TALER_BANK_make_auth_header_ (const struct TALER_BANK_AuthenticationData *auth) authh = append (authh, "X-Taler-Bank-Password", auth->details.basic.password); - break; + return authh; } - return authh; + return NULL; } - /** * Obtain the URL to use for an API request. *