[asterisk-dev] Constants in app_queue.c

Benny Amorsen benny+usenet at amorsen.dk
Thu Jul 23 08:46:04 CDT 2009


I found this gem in app_queue.c:

if (!ast_strlen_zero(args.membername)) {
     membername = args.membername;
     while (*membername && *membername < 33) membername++;
}

if (!ast_strlen_zero(args.state_interface)) {
     state_interface = args.state_interface;
     while (*state_interface && *state_interface < 33) state_interface++;
} else
     state_interface = interface;


There are no indications why 33 is the correct value, and if whatever
limit it is reflecting is ever changed, it is likely that the 33 will
be forgotten.


/Benny





More information about the asterisk-dev mailing list