Skip to content

Commit

Permalink
Use parentheses to ensure compilation (#3138)
Browse files Browse the repository at this point in the history
Compiler fails with latest Curl release. Use parenthesis to ensure compiler evaluates expression correctly.
  • Loading branch information
bkmgit committed Jan 4, 2023
1 parent 5193315 commit 51431c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/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 51431c3

Please sign in to comment.