Changeset 1205


Ignore:
Timestamp:
Apr 19, 2007 10:51:38 AM (12 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip-apps/src/pjsua/pjsua_app.c

    r1122 r1205  
    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,  
     
    905905            PJ_LOG(1,(THIS_FILE,  
    906906                      "Argument \"%s\" is not valid. Use --help to see help", 
    907                       argv[pj_optind])); 
     907                      argv[pj_optind-1])); 
    908908            return -1; 
    909909        } 
Note: See TracChangeset for help on using the changeset viewer.