lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1594 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1594 - nss-pam-ldapd/nslcd



Author: jhrozek
Date: Mon Jan  9 13:15:09 2012
New Revision: 1594
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1594&view=revision

Log:
Add a matching va_end() for va_start() in mysnprintf()

Modified:
   nss-pam-ldapd/nslcd/common.c

Modified: nss-pam-ldapd/nslcd/common.c
==============================================================================
--- nss-pam-ldapd/nslcd/common.c        Mon Jan  9 13:11:29 2012        (r1593)
+++ nss-pam-ldapd/nslcd/common.c        Mon Jan  9 13:15:09 2012        (r1594)
@@ -51,6 +51,7 @@
   /* do snprintf */
   va_start(ap,format);
   res=vsnprintf(buffer,buflen,format,ap);
+  va_end(ap);
   /* NULL-terminate the string just to be on the safe side */
   buffer[buflen-1]='\0';
   /* check if the string was completely written */
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/