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:
Rodrigo Ramírez Norambuena
2015-05-04 21:11:56 -04:00
committed by Rodrigo Ramirez Norambuena
parent 16f602f5c2
commit 9b13536fed

View File

@@ -6755,9 +6755,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");