X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=72bca9fd87f0f2e348bcb5c142ebef891280bcc5;hp=6a953a20e7a0208601cb4d29c9388856b348f549;hb=8bb49ccb7b3eba0a3f20d3b097541304b3580f70;hpb=0c65074b5b88b2da2390078d0fab6c72f228709d diff --git a/chan_lcr.c b/chan_lcr.c index 6a953a2..72bca9f 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -2748,13 +2748,14 @@ static int lcr_config_exec(struct ast_channel *ast, void *data, char **argv) int load_module(void) { u_short i; + char options_error[256]; for (i = 0; i < 256; i++) { flip_bits[i] = (i>>7) | ((i>>5)&2) | ((i>>3)&4) | ((i>>1)&8) | (i<<7) | ((i&2)<<5) | ((i&4)<<3) | ((i&8)<<1); } - if (read_options() == 0) { + if (read_options(options_error) == 0) { CERROR(NULL, NULL, "%s", options_error); #ifdef LCR_FOR_ASTERISK