Skip to content

Commit 5db2c35

Browse files
committed
code: remove reduntant parenthesis
disable SonarQube Signed-off-by: Hans Zandbelt <[email protected]>
1 parent fdcaf7a commit 5db2c35

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/util.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ apr_byte_t oidc_util_read_form_encoded_params(request_rec *r, apr_table_t *table
12091209
const char *val = NULL;
12101210
const char *p = data;
12111211

1212-
while ((p) && (*p)) {
1212+
while (p && (*p)) {
12131213
val = ap_getword(r->pool, &p, OIDC_CHAR_AMP);
12141214
if (val == NULL)
12151215
break;
@@ -1649,7 +1649,7 @@ apr_hash_t *oidc_util_spaced_string_to_hashtable(apr_pool_t *pool, const char *s
16491649
char *val;
16501650
const char *data = apr_pstrdup(pool, str);
16511651
apr_hash_t *result = apr_hash_make(pool);
1652-
while ((data) && (*data)) {
1652+
while (data && (*data)) {
16531653
val = ap_getword_white(pool, &data);
16541654
if (val == NULL)
16551655
break;
@@ -1793,10 +1793,11 @@ apr_byte_t oidc_util_json_merge(request_rec *r, json_t *src, json_t *dst) {
17931793
* add query encoded parameters to a table
17941794
*/
17951795
void oidc_util_table_add_query_encoded_params(apr_pool_t *pool, apr_table_t *table, const char *params) {
1796-
char *key = NULL, *value = NULL;
1796+
char *key = NULL;
1797+
char *value = NULL;
17971798
const char *v = NULL;
17981799
const char *p = params;
1799-
while ((p) && (*p)) {
1800+
while (p && (*p)) {
18001801
v = ap_getword(pool, &p, OIDC_CHAR_AMP);
18011802
if (v == NULL)
18021803
break;

0 commit comments

Comments
 (0)