Changeset 262 in openpam for trunk/lib/pam_end.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/pam_end.c

    r245 r262  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_end.c#13 $
     34 * $P4: //depot/projects/openpam/lib/pam_end.c#14 $
    3535 */
    3636
     
    6969
    7070        /* clear environment */
    71         while (pamh->env_count)
    72                 FREE(pamh->env[--pamh->env_count]);
     71        while (pamh->env_count) {
     72                --pamh->env_count;
     73                FREE(pamh->env[pamh->env_count]);
     74        }
    7375        FREE(pamh->env);
    7476
Note: See TracChangeset for help on using the changeset viewer.