diff options
author | 2015-03-07 08:39:22 -0800 | |
---|---|---|
committer | 2015-03-07 08:39:22 -0800 | |
commit | 2ad8d21158df8b9a7e37b0a966f76b52a61f25e6 (patch) | |
tree | e1a64c2292d313ca08dea9288c7fc55b108b0db2 /src/core/security/json_token.c | |
parent | 3631e82c890de1ff0382ab3062b2d05193604046 (diff) |
strcmp: change all !str[n]cmp to str[n]cmp == 0
Change all !str[n]cmp to be str[n]cmp == 0 consistently across the codebase.
Issue #231
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Diffstat (limited to 'src/core/security/json_token.c')
-rw-r--r-- | src/core/security/json_token.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/security/json_token.c b/src/core/security/json_token.c index 26d57036a6..40b612b206 100644 --- a/src/core/security/json_token.c +++ b/src/core/security/json_token.c @@ -257,7 +257,7 @@ static char *dot_concat_and_free_strings(char *str1, char *str2) { } const EVP_MD *openssl_digest_from_algorithm(const char *algorithm) { - if (!strcmp(algorithm, GRPC_JWT_RSA_SHA256_ALGORITHM)) { + if (strcmp(algorithm, GRPC_JWT_RSA_SHA256_ALGORITHM) == 0) { return EVP_sha256(); } else { gpr_log(GPR_ERROR, "Unknown algorithm %s.", algorithm); |