Ignore:
Timestamp:
Apr 19, 2007 10:57:01 AM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #236: Crash in console application when invalid command line is given (thanks Roland Klabunde)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r1135 r1206  
    321321    int c; 
    322322    int option_index; 
    323     enum { OPT_CONFIG_FILE, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL,  
     323    enum { OPT_CONFIG_FILE=127, OPT_LOG_FILE, OPT_LOG_LEVEL, OPT_APP_LOG_LEVEL,  
    324324           OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO,  
    325325           OPT_LOCAL_PORT, OPT_IP_ADDR, OPT_PROXY, OPT_OUTBOUND_PROXY,  
     
    880880            PJ_LOG(1,(THIS_FILE,  
    881881                      "Argument \"%s\" is not valid. Use --help to see help", 
    882                       argv[pj_optind])); 
     882                      argv[pj_optind-1])); 
    883883            return -1; 
    884884        } 
Note: See TracChangeset for help on using the changeset viewer.