(decode_tuple_v1_0): Allow mailbox to be NULL.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -362,7 +362,7 @@ decode_tuple_v1_0 (mu_sql_connection_t conn, int n, | ... | @@ -362,7 +362,7 @@ decode_tuple_v1_0 (mu_sql_connection_t conn, int n, |
362 | char *tmp; | 362 | char *tmp; |
363 | if (mu_sql_get_column (conn, 0, 6, &tmp)) | 363 | if (mu_sql_get_column (conn, 0, 6, &tmp)) |
364 | return MU_ERR_FAILURE; | 364 | return MU_ERR_FAILURE; |
365 | if ((mailbox_name = strdup (tmp)) == NULL) | 365 | if (tmp && (mailbox_name = strdup (tmp)) == NULL) |
366 | return ENOMEM; | 366 | return ENOMEM; |
367 | } | 367 | } |
368 | else if (mu_construct_user_mailbox_url (&mailbox_name, name)) | 368 | else if (mu_construct_user_mailbox_url (&mailbox_name, name)) | ... | ... |
-
Please register or sign in to post a comment