Diffstat (limited to 'kmicromail/libetpan/generic/imapstorage.c') (more/less context) (show whitespace changes)
-rw-r--r-- | kmicromail/libetpan/generic/imapstorage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kmicromail/libetpan/generic/imapstorage.c b/kmicromail/libetpan/generic/imapstorage.c index e8683d8..972b6dd 100644 --- a/kmicromail/libetpan/generic/imapstorage.c +++ b/kmicromail/libetpan/generic/imapstorage.c | |||
@@ -62,25 +62,25 @@ static mailstorage_driver imap_mailstorage_driver = { | |||
62 | .sto_uninitialize = imap_mailstorage_uninitialize, | 62 | .sto_uninitialize = imap_mailstorage_uninitialize, |
63 | }; | 63 | }; |
64 | 64 | ||
65 | int imap_mailstorage_init(struct mailstorage * storage, | 65 | int imap_mailstorage_init(struct mailstorage * storage, |
66 | char * imap_servername, uint16_t imap_port, | 66 | char * imap_servername, uint16_t imap_port, |
67 | char * imap_command, | 67 | char * imap_command, |
68 | int imap_connection_type, int imap_auth_type, | 68 | int imap_connection_type, int imap_auth_type, |
69 | char * imap_login, char * imap_password, | 69 | char * imap_login, char * imap_password, |
70 | int imap_cached, char * imap_cache_directory) | 70 | int imap_cached, char * imap_cache_directory) |
71 | { | 71 | { |
72 | struct imap_mailstorage * imap_storage; | 72 | struct imap_mailstorage * imap_storage; |
73 | 73 | ||
74 | imap_storage = malloc(sizeof(struct imap_mailstorage)); | 74 | imap_storage = malloc(sizeof(* imap_storage)); |
75 | if (imap_storage == NULL) | 75 | if (imap_storage == NULL) |
76 | goto err; | 76 | goto err; |
77 | 77 | ||
78 | imap_storage->imap_servername = strdup(imap_servername); | 78 | imap_storage->imap_servername = strdup(imap_servername); |
79 | if (imap_storage->imap_servername == NULL) | 79 | if (imap_storage->imap_servername == NULL) |
80 | goto free; | 80 | goto free; |
81 | 81 | ||
82 | imap_storage->imap_connection_type = imap_connection_type; | 82 | imap_storage->imap_connection_type = imap_connection_type; |
83 | 83 | ||
84 | if (imap_port == 0) { | 84 | if (imap_port == 0) { |
85 | switch (imap_connection_type) { | 85 | switch (imap_connection_type) { |
86 | case CONNECTION_TYPE_PLAIN: | 86 | case CONNECTION_TYPE_PLAIN: |