Skip to content

Commit 51431c3

Browse files
authored
Use parentheses to ensure compilation (#3138)
Compiler fails with latest Curl release. Use parenthesis to ensure compiler evaluates expression correctly.
1 parent 5193315 commit 51431c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/turnrest.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ janus_turnrest_response *janus_turnrest_request(const char *user) {
165165
JANUS_LOG(LOG_VERB, "Sending request: %s\n", request_uri);
166166
janus_mutex_unlock(&api_mutex);
167167
curl_easy_setopt(curl, CURLOPT_URL, request_uri);
168-
curl_easy_setopt(curl, api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST, 1);
168+
curl_easy_setopt(curl, (api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST), 1);
169169
if(!api_http_get) {
170170
/* FIXME Some servers don't like a POST with no data */
171171
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query_string);

0 commit comments

Comments
 (0)