mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
Don't actually do anything with a negative priority, because we ignore it in
the result, anyway. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -75,6 +75,12 @@ static struct ast_variable *realtime_switch_common(const char *table, const char
|
|||||||
char *ematch;
|
char *ematch;
|
||||||
char rexten[AST_MAX_EXTENSION + 20]="";
|
char rexten[AST_MAX_EXTENSION + 20]="";
|
||||||
int match;
|
int match;
|
||||||
|
/* Optimization: since we don't support hints in realtime, it's silly to
|
||||||
|
* query for a hint here, since we won't actually do anything with it.
|
||||||
|
* This just wastes CPU time and resources. */
|
||||||
|
if (priority < 0) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
snprintf(pri, sizeof(pri), "%d", priority);
|
snprintf(pri, sizeof(pri), "%d", priority);
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case MODE_MATCHMORE:
|
case MODE_MATCHMORE:
|
||||||
|
Reference in New Issue
Block a user