Changeset 93d9a388cab3b40a5361df3b779cbc5ff6e25140

Show
Ignore:
Timestamp:
24/05/08 00:16:38 (5 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1211580998 +0200
git-parent:

[7c359c66acbc65bede22e11bf6e8a510fbac5fc7]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1211580966 +0200
Message:

config: Clean up for the -psn cmd line argument case on Mac OS X.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/config/cmdline.c

    r449fd28 r93d9a38  
    7575         * not pick up the PSN and not register the app and we crash... 
    7676         * hence the following kludge otherwise we'll get confused w/ argv[1] 
    77          * being an input file name */ 
    78 #if 0 
    79         ppsz_argv[ 1 ] = NULL; 
    80 #endif 
    81         *pi_argc = *pi_argc - 1; 
    82         pi_argc--; 
     77         * being an input file name. 
     78         * As there won't be any more args to parse, just exit. */ 
     79        assert( *pi_argc == 2 ); 
     80        *pi_argc = 1; 
    8381        return 0; 
    8482    }