From 3bdb82db8bf9d865e5aa2346bde0f9195bc76290 Mon Sep 17 00:00:00 2001 From: Lorenzo Miniero Date: Wed, 4 Jan 2023 11:36:22 +0100 Subject: [PATCH] Use parentheses to ensure compilation (see #3138) --- turnrest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turnrest.c b/turnrest.c index b8560d22f2..42e6114de8 100644 --- a/turnrest.c +++ b/turnrest.c @@ -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);