Commit ad08b9e5 ad08b9e51eed07ad326f86513e0787b46652992d by Sergey Poznyakoff

(decode_tuple_v1_0): Allow mailbox to be NULL.

1 parent d392c89f
...@@ -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))
......