From: Antoine Cellerier Date: Thu, 11 Feb 2010 11:47:28 +0000 (+0100) Subject: Untested windows compile fix. X-Git-Tag: 1.1.0-ff~177 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d9a487c27ac4f2f931e7076f9003e8eef2582778;p=vlc Untested windows compile fix. --- diff --git a/src/text/strings.c b/src/text/strings.c index 36b3e23357..eb46c9e5bf 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -964,6 +964,10 @@ char *str_format( vlc_object_t *p_this, const char *psz_src ) */ void filename_sanitize( char *str ) { +#if defined( WIN32 ) + char *str_base = str; +#endif + if( *str == '.' && (str[1] == '\0' || (str[1] == '.' && str[2] == '\0' ) ) ) { while( *str )