[MPlayer-cvslog] r26024 - trunk/gui/mplayer/gtk/fs.c

Rich Felker dalias at aerifal.cx
Mon Feb 18 21:20:25 CET 2008


On Mon, Feb 18, 2008 at 08:38:00PM +0100, diego wrote:
> Author: diego
> Date: Mon Feb 18 20:37:59 2008
> New Revision: 26024
> 
> Log:
> Merge the two conditional definitions of get_current_dir_name.
> 
> 
> Modified:
>    trunk/gui/mplayer/gtk/fs.c
> 
> Modified: trunk/gui/mplayer/gtk/fs.c
> ==============================================================================
> --- trunk/gui/mplayer/gtk/fs.c	(original)
> +++ trunk/gui/mplayer/gtk/fs.c	Mon Feb 18 20:37:59 2008
> @@ -25,9 +25,7 @@
>  
>  #ifndef __linux__
>  #define get_current_dir_name()  getcwd(NULL, PATH_MAX)
> -#endif
> -
> -#ifndef get_current_dir_name
> +#else
>   extern char * get_current_dir_name( void );
>  #endif

This code is invalid. getcwd has unspecified behavior if the first
argument is NULL.

Rich



More information about the MPlayer-cvslog mailing list