comparison src/conf.c @ 411:9b93c0a3bd8c

Ensure lvals, rvals and components of address strucs are stripped.
author markus schnalke <meillo@marmaro.de>
date Wed, 29 Feb 2012 12:06:33 +0100
parents eedc23877cd5
children 8a62bebda631
comparison
equal deleted inserted replaced
410:cff967b2f51e 411:9b93c0a3bd8c
378 return FALSE; 378 return FALSE;
379 } 379 }
380 if (!read_lval(in, lval, lsize)) { 380 if (!read_lval(in, lval, lsize)) {
381 return FALSE; 381 return FALSE;
382 } 382 }
383 383 g_strstrip(lval);
384 DEBUG(9) fprintf(stderr, " lval = %s\n", lval); 384 DEBUG(9) fprintf(stderr, " lval = `%s'\n", lval);
385 if ((c = fgetc(in) != '=')) { 385 if ((c = fgetc(in) != '=')) {
386 fprintf(stderr, "'=' expected after %s, char was '%c'\n", 386 fprintf(stderr, "'=' expected after %s, char was '%c'\n",
387 lval, c); 387 lval, c);
388 } 388 }
389 if (!read_rval(in, rval, rsize)) { 389 if (!read_rval(in, rval, rsize)) {
390 return FALSE; 390 return FALSE;
391 } 391 }
392 DEBUG(9) fprintf(stderr, " rval = %s\n", rval); 392 g_strstrip(rval);
393 DEBUG(9) fprintf(stderr, " rval = `%s'\n", rval);
393 return TRUE; 394 return TRUE;
394 } 395 }
395 396
396 gboolean 397 gboolean
397 read_conf(gchar *filename) 398 read_conf(gchar *filename)