From 9b6598ed08d1f08565dc5f9631f7e2ad723347a3 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Fri, 5 Feb 2016 02:22:24 -0500 Subject: [PATCH] tool_doswin: Use type SANITIZEcode in sanitize_file_name --- src/tool_doswin.c | 14 +++++++------- 1 file 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);