1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* argparse.c (optfile_parse): Renamed an auto I to P2 to avoid

shadowing warning.
This commit is contained in:
Werner Koch 2002-06-29 20:46:28 +00:00
parent 0ed6228293
commit bc46bac1ad
2 changed files with 11 additions and 6 deletions

View file

@ -330,15 +330,15 @@ optfile_parse( FILE *fp, const char *filename, unsigned *lineno,
/* remove quotes if they totally enclose the
string, and do not occur within the string */
if( *p == '"' && p[strlen(p)-1]=='"') {
char *i=p;
char *p2=p;
while(*(++i))
if(*i=='"')
while(*(++p2))
if(*p2=='"')
break;
if(*i=='"' && *(i+1)=='\0') {
p[strlen(p)-1] = 0;
p++;
if(*p2=='"' && *(p2+1)=='\0') {
p2[strlen(p2)-1] = 0;
p2++;
}
}
if( !set_opt_arg(arg, opts[idx].flags, p) )