Commit e0e2dcdd authored by Sam Hocevar's avatar Sam Hocevar

  * Fix for Darwin program path handling. I mistakenly assumed that the
    program path was always absolute.
parent a3d70339
......@@ -3,7 +3,7 @@
HEAD
* Nothing yet.
* Fix for Darwin program path handling.
0.2.71
Fri, 13 Apr 2001 08:13:26 +0200
......
......@@ -2,7 +2,7 @@
* darwin_specific.c: Darwin specific features
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: darwin_specific.c,v 1.1 2001/04/12 01:52:45 sam Exp $
* $Id: darwin_specific.c,v 1.2 2001/04/13 14:33:22 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -38,10 +38,11 @@ static char * psz_program_path;
void system_Create( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] )
{
char *p_char, *p_oldchar;
char i_dummy;
char *p_char, *p_oldchar = &i_dummy;
/* Get the full program path and name */
p_char = p_oldchar = psz_program_path = strdup( ppsz_argv[ 0 ] );
p_char = psz_program_path = strdup( ppsz_argv[ 0 ] );
/* Remove trailing program name */
for( ; *p_char ; )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment