diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-11-12 12:38:51 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-11-12 12:38:51 +0000 |
commit | ad08b9e51eed07ad326f86513e0787b46652992d (patch) | |
tree | 02bf1488b680e7ab7bc2aee70f534fac17146d75 | |
parent | d392c89f3b8e97da5e8a6aa23b1d2a60670f6d3d (diff) | |
download | mailutils-ad08b9e51eed07ad326f86513e0787b46652992d.tar.gz mailutils-ad08b9e51eed07ad326f86513e0787b46652992d.tar.bz2 |
(decode_tuple_v1_0): Allow mailbox to be NULL.
-rw-r--r-- | auth/sql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/sql.c b/auth/sql.c index 81588e608..a24ebdf5f 100644 --- a/auth/sql.c +++ b/auth/sql.c @@ -362,7 +362,7 @@ decode_tuple_v1_0 (mu_sql_connection_t conn, int n, char *tmp; if (mu_sql_get_column (conn, 0, 6, &tmp)) return MU_ERR_FAILURE; - if ((mailbox_name = strdup (tmp)) == NULL) + if (tmp && (mailbox_name = strdup (tmp)) == NULL) return ENOMEM; } else if (mu_construct_user_mailbox_url (&mailbox_name, name)) |