From: Jay Satiro Date: Fri, 5 Feb 2016 07:22:24 +0000 (-0500) Subject: tool_doswin: Use type SANITIZEcode in sanitize_file_name X-Git-Tag: curl-7_47_1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b6598ed08d1f08565dc5f9631f7e2ad723347a3;p=thirdparty%2Fcurl.git tool_doswin: Use type SANITIZEcode in sanitize_file_name --- diff --git a/src/tool_doswin.c b/src/tool_doswin.c index 6e1fe0ed30..8650427ca0 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);