Merge "main/manager.c: Bugfix sort action_manager by alphabetically"
authorJoshua Colp <jcolp@digium.com>
Thu, 14 May 2015 10:03:07 +0000 (05:03 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 14 May 2015 10:03:07 +0000 (05:03 -0500)
main/manager.c

index 17a2738..60e185b 100644 (file)
@@ -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");