fix uninitialised warning.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)
citadel/ldap.c

index f7f415a8affe0a3ddbcb7085a1082b2db45f00c9..9d6ddf16389c57ebb76d44ab99e5c87caca1fd28 100644 (file)
@@ -245,7 +245,7 @@ int CtdlTryPasswordLDAP(char *user_dn, const char *password)
 //return !0 iff property changed.
 int vcard_set_props_iff_different(struct vCard *v,char *propname,int numvals, char **vals) {
        int i;
-       char *oldval;
+       char *oldval = "";
        for(i=0;i<numvals;i++) {
          oldval = vcard_get_prop(v,propname,0,i,0);
          if (oldval == NULL) break;