fixed so we can comment lines in configfile

This commit is contained in:
fluxgen 2002-01-10 14:24:09 +00:00
parent 2ea94bb322
commit bdc25f3fc9

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
//$Id: Keys.cc,v 1.7 2002/01/09 14:11:20 fluxgen Exp $ //$Id: Keys.cc,v 1.8 2002/01/10 14:24:09 fluxgen Exp $
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
@ -201,6 +201,8 @@ bool Keys::load(char *filename) {
if (val.size()<=0) if (val.size()<=0)
continue; continue;
if (val[0][0]=='#') //the line is commented
continue;
unsigned int key=0, mod=0; unsigned int key=0, mod=0;
char keyarg=0; char keyarg=0;