Changeset 542 for trunk/src/ocat.c


Ignore:
Timestamp:
02/08/10 23:27:43 (2 years ago)
Author:
eagle
Message:

minor bugfix with initial config file read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ocat.c

    r538 r542  
    282282            free(CNF(config_file)); 
    283283            CNF(config_file) = optarg; 
    284             CNF(config_read) = 0; 
    285284            break; 
    286285 
     
    431430 
    432431   if ((c = open(CNF(config_file), O_RDONLY)) == -1) 
     432   { 
    433433      CNF(config_failed) = errno; 
     434      CNF(config_read) = 1; 
     435   } 
    434436   else 
    435437      ctrl_handler((void*) (long) c); 
     438  
    436439 
    437440   urlconv = parse_opt(argc, argv); 
Note: See TracChangeset for help on using the changeset viewer.