Prevented reading of startup files with first arg -version, -help or --help

trunk@386
Thomas Schmitt 16 years ago
parent 84ee76f564
commit 927352c609
  1. 6
      cdrskin/cdrskin.c
  2. 2
      cdrskin/cdrskin_timestamp.h

@ -1533,9 +1533,11 @@ return:
char *value_pt;
#ifndef Cdrskin_extra_leaN
if(argc>1)
if(strcmp(argv[1],"--no_rc")==0)
if(argc>1) {
if(strcmp(argv[1],"--no_rc")==0 || strcmp(argv[1],"-version")==0 ||
strcmp(argv[1],"--help")==0 || strcmp(argv[1],"-help")==0)
flag|= 2;
}
if(!(flag&2)) {
ret= Cdrpreskin_read_rc(o,argv[0],0);
if(ret<0)

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.27.080826"
#define Cdrskin_timestamP "2006.09.27.082057"

Loading…
Cancel
Save