diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-02-05 02:22:24 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-02-05 02:22:24 -0500 |
commit | 9b6598ed08d1f08565dc5f9631f7e2ad723347a3 (patch) | |
tree | 179bd21687344343e8e0a2c181293b192e3cccce /src/tool_doswin.c | |
parent | 4520534e6d5576f0647d03d6c573c5d7d45ccf6e (diff) | |
download | curl-9b6598ed08d1f08565dc5f9631f7e2ad723347a3.tar.gz |
tool_doswin: Use type SANITIZEcode in sanitize_file_name
Diffstat (limited to 'src/tool_doswin.c')
-rw-r--r-- | src/tool_doswin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c index 6e1fe0ed3..8650427ca 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -137,7 +137,7 @@ SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, { char *p, *target; size_t len; - CURLcode res; + SANITIZEcode sc; size_t max_sanitized_len; if(!sanitized) @@ -218,10 +218,10 @@ SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, } #ifdef MSDOS - res = msdosify(&p, target, flags); + sc = msdosify(&p, target, flags); free(target); - if(res) - return res; + if(sc) + return sc; target = p; len = strlen(target); @@ -232,10 +232,10 @@ SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, #endif if(!(flags & SANITIZE_ALLOW_RESERVED)) { - res = rename_if_reserved_dos_device_name(&p, target, flags); + sc = rename_if_reserved_dos_device_name(&p, target, flags); free(target); - if(res) - return res; + if(sc) + return sc; target = p; len = strlen(target); |