mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
main/manager.c: Bugfix sort action_manager by alphabetically
Fix the alphabetic order added on ast_manager_register_struct. The order for struct manager_action added is not working, this change fixes the problem. Change-Id: I149da0cd06c3c4445d7516cc303358e9f26f8b4b
This commit is contained in:
@@ -6781,9 +6781,9 @@ static int ast_manager_register_struct(struct manager_action *act)
|
||||
return -1;
|
||||
}
|
||||
if (ret > 0) { /* Insert these alphabetically */
|
||||
prev = cur;
|
||||
break;
|
||||
}
|
||||
prev = cur;
|
||||
}
|
||||
|
||||
ao2_t_ref(act, +1, "action object added to list");
|
||||
|
Reference in New Issue
Block a user