]> git.ipfire.org Git - thirdparty/git.git/blobdiff - credential.c
Merge branch 'jk/apply-binary-hunk-parsing-fix'
[thirdparty/git.git] / credential.c
index e5202fbef261cce258019fbbaa98e687d0d044d3..3c05c7c669166f3ececfaa7fb9ffaac8dbe6ffbe 100644 (file)
@@ -10,8 +10,8 @@
 
 void credential_init(struct credential *c)
 {
-       memset(c, 0, sizeof(*c));
-       c->helpers.strdup_strings = 1;
+       struct credential blank = CREDENTIAL_INIT;
+       memcpy(c, &blank, sizeof(*c));
 }
 
 void credential_clear(struct credential *c)