gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/lib/src


From: gsasl-commit
Subject: CVS gsasl/lib/src
Date: Fri, 24 Sep 2004 16:22:22 +0200

Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv14984

Modified Files:
        listmech.c 
Log Message:
Cleanup.


--- /home/cvs/gsasl/lib/src/listmech.c  2004/09/24 14:20:54     1.4
+++ /home/cvs/gsasl/lib/src/listmech.c  2004/09/24 14:22:22     1.5
@@ -31,11 +31,10 @@
   size_t i;
   int rc;
 
-  list = malloc (n_mechs * (GSASL_MAX_MECHANISM_SIZE + 1));
+  list = calloc (n_mechs, GSASL_MAX_MECHANISM_SIZE + 1);
   if (!list)
     return GSASL_MALLOC_ERROR;
 
-  *list = '\0';
   for (i = 0; i < n_mechs; i++)
     {
       if (clientp)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]