]> git.sur5r.net Git - openldap/commitdiff
include ac/ctype.h and initialize some variables to avoid compiler warnings
authorBen Collins <bcollins@openldap.org>
Fri, 15 Sep 2000 02:53:55 +0000 (02:53 +0000)
committerBen Collins <bcollins@openldap.org>
Fri, 15 Sep 2000 02:53:55 +0000 (02:53 +0000)
libraries/libldap/cyrus.c

index 058523f42e15a954a6222407c999b9850d7740c7..f0f8875b5e71d035312a7ad40e17addd8b221289 100644 (file)
@@ -13,6 +13,7 @@
 #include <ac/string.h>
 #include <ac/time.h>
 #include <ac/errno.h>
+#include <ac/ctype.h>
 
 #include "ldap-int.h"
 #ifdef LDAP_R_COMPILE
@@ -654,11 +655,11 @@ int ldap_pvt_sasl_secprops(
        char **props = ldap_str2charray( in, "," );
        unsigned sflags = 0;
        int got_sflags = 0;
-       sasl_ssf_t max_ssf;
+       sasl_ssf_t max_ssf = 0;
        int got_max_ssf = 0;
-       sasl_ssf_t min_ssf;
+       sasl_ssf_t min_ssf = 0;
        int got_min_ssf = 0;
-       unsigned maxbufsize;
+       unsigned maxbufsize = 0;
        int got_maxbufsize = 0;
 
        if( props == NULL || secprops == NULL ) {