Changeset 262 in openpam for trunk/lib/openpam_load.c


Ignore:
Timestamp:
Jun 18, 2003, 11:41:27 AM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Avoid side effects in macro arguments (don't I ever learn?); also
address some related style issues.

Submitted by: Dmitry V. Levin <ldv@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_load.c

    r245 r262  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_load.c#19 $
     34 * $P4: //depot/projects/openpam/lib/openpam_load.c#20 $
    3535 */
    3636
     
    154154        openpam_destroy_chain(chain->next);
    155155        chain->next = NULL;
    156         while (chain->optc--)
     156        while (chain->optc) {
     157                --chain->optc;
    157158                FREE(chain->optv[chain->optc]);
     159        }
    158160        FREE(chain->optv);
    159161        openpam_release_module(chain->module);
     162        chain->module = NULL;
    160163        FREE(chain);
    161164}
Note: See TracChangeset for help on using the changeset viewer.