Require semicolon after SAVE_CURL_ERROR()

This commit is contained in:
GITSRC 2019-05-13 16:21:46 +08:00 committed by Nikita Popov
parent c55af3c65a
commit 5d3337076b

View File

@ -107,8 +107,8 @@ static ZEND_ATTRIBUTE_UNUSED unsigned long php_curl_ssl_id(void)
static void _php_curl_close_ex(php_curl *ch);
static void _php_curl_close(zend_resource *rsrc);
#define SAVE_CURL_ERROR(__handle, __err) (__handle)->err.no = (int) __err;
#define SAVE_CURL_ERROR(__handle, __err) \
do { (__handle)->err.no = (int) __err; } while (0)
#define CAAL(s, v) add_assoc_long_ex(return_value, s, sizeof(s) - 1, (zend_long) v);
#define CAAD(s, v) add_assoc_double_ex(return_value, s, sizeof(s) - 1, (double) v);
@ -147,7 +147,7 @@ static int php_curl_option_str(php_curl *ch, zend_long option, const char *str,
}
#endif
SAVE_CURL_ERROR(ch, error)
SAVE_CURL_ERROR(ch, error);
return error == CURLE_OK ? SUCCESS : FAILURE;
}