[PECL-CVS] [pecl-web_services-oauth] fix-curl-mime-deprecation: address reviews
[email protected] (Rasmus Lerdorf) Sat, 4 Apr 2026 22:33:59 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T18:33:55-04:00
Commit: https://github.com/php/pecl-web_services-oauth/commit/b1eb638ec1c60b110d349ec5011c0e9bb210c05d
Raw diff: https://github.com/php/pecl-web_services-oauth/commit/b1eb638ec1c60b110d349ec5011c0e9bb210c05d.diff
address reviews
Changed paths:
M oauth.c
Diff:
diff --git a/oauth.c b/oauth.c
index f1b28fe..c8a9f73 100644
--- a/oauth.c
+++ b/oauth.c
@@ -1123,7 +1123,7 @@ long make_req_curl(php_so_object *soo, const char *url, const smart_string *payl
}
for(i=0; i < soo->multipart_files_num; i++) {
- char *type, *filename, *postval, *postval_orig;
+ char *type = NULL, *filename = NULL, *postval, *postval_orig;
curl_mimepart *part;
/* swiped from ext/curl/interface.c to help with consistency */
@@ -1195,7 +1195,7 @@ long make_req_curl(php_so_object *soo, const char *url, const smart_string *payl
int i;
for(i=0; i < soo->multipart_files_num; i++) {
- char *type, *filename, *postval, *postval_orig;
+ char *type = NULL, *filename = NULL, *postval, *postval_orig;
postval_orig = postval = estrdup(soo->multipart_files[i]);