mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +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:
committed by
Rodrigo Ramirez Norambuena
parent
16f602f5c2
commit
9b13536fed
@@ -6755,9 +6755,9 @@ static int ast_manager_register_struct(struct manager_action *act)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (ret > 0) { /* Insert these alphabetically */
|
if (ret > 0) { /* Insert these alphabetically */
|
||||||
prev = cur;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
prev = cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
ao2_t_ref(act, +1, "action object added to list");
|
ao2_t_ref(act, +1, "action object added to list");
|
||||||
|
Reference in New Issue
Block a user