* Takes a list of source privileges and consolidates them into the * provided list of consolidated privileges, merging any duplicate privileges and combining their actions. */
| 479 | * provided list of consolidated privileges, merging any duplicate privileges and combining their actions. |
| 480 | */ |
| 481 | static void |
| 482 | ConsolidatePrivileges(List **consolidatedPrivileges, |
| 483 | const Privilege *sourcePrivileges, |
| 484 | size_t sourcePrivilegeCount) |
| 485 | { |
| 486 | if (sourcePrivileges == NULL) |
| 487 | { |
| 488 | return; |
| 489 | } |
| 490 | |
| 491 | for (size_t i = 0; i < sourcePrivilegeCount; i++) |
| 492 | { |
| 493 | ConsolidatePrivilege(consolidatedPrivileges, &sourcePrivileges[i]); |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | |
| 498 | /* |
no test coverage detected