mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:03:34 +03:00
src: avoid strdup on platforms not doing UTF8 conversions
... and use more const strings. Closes #16560
This commit is contained in:
parent
7298c4320b
commit
ed15fce1fd
6 changed files with 73 additions and 41 deletions
|
|
@ -84,7 +84,7 @@ typedef union {
|
|||
#define curlx_unicodefree(ptr) \
|
||||
do { \
|
||||
if(ptr) { \
|
||||
(free)(ptr); \
|
||||
(free)((char *)ptr); \
|
||||
(ptr) = NULL; \
|
||||
} \
|
||||
} while(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue