Skip to content

Commit

Permalink
Use parentheses to ensure compilation (see #3138)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Jan 4, 2023
1 parent 27f1ec7 commit 3bdb82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turnrest.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ janus_turnrest_response *janus_turnrest_request(const char *user) {
JANUS_LOG(LOG_VERB, "Sending request: %s\n", request_uri);
janus_mutex_unlock(&api_mutex);
curl_easy_setopt(curl, CURLOPT_URL, request_uri);
curl_easy_setopt(curl, api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST, 1);
curl_easy_setopt(curl, (api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST), 1);
if(!api_http_get) {
/* FIXME Some servers don't like a POST with no data */
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query_string);
Expand Down

0 comments on commit 3bdb82d

Please sign in to comment.