mirror of
https://github.com/curl/curl.git
synced 2025-09-12 07:02:41 +03:00
tool_operhlp: fix "potentially uninitialized local variable 'pc' used"
A false positive by MSVC. Closes #14389
This commit is contained in:
parent
3eec5afbd0
commit
781c14c4ed
|
@ -182,7 +182,6 @@ fail:
|
|||
*/
|
||||
CURLcode get_url_file_name(char **filename, const char *url)
|
||||
{
|
||||
char *pc, *pc2;
|
||||
CURLU *uh = curl_url();
|
||||
char *path = NULL;
|
||||
CURLUcode uerr;
|
||||
|
@ -199,7 +198,7 @@ CURLcode get_url_file_name(char **filename, const char *url)
|
|||
uh = NULL;
|
||||
if(!uerr) {
|
||||
int i;
|
||||
|
||||
char *pc = NULL, *pc2 = NULL;
|
||||
for(i = 0; i < 2; i++) {
|
||||
pc = strrchr(path, '/');
|
||||
pc2 = strrchr(pc ? pc + 1 : path, '\\');
|
||||
|
|
Loading…
Reference in New Issue
Block a user