Re: IMAPS problems...



On 2001.08.22 10:55 Toralf Lund wrote:

[snip]

>Anyhow, the crash occurs here: 
>
>	static gboolean
>	imap_check_test(const gchar * path)
>	{
>	    /* path has been parsed, so it's just the folder path */
>	    if (balsa_app.check_imap && balsa_app.check_imap_inbox)
>--->		return strcmp(path, "INBOX") == 0;
>	    else
>		return balsa_app.check_imap;
>	}
>

[snip]

This is a case I never see! The path is set by `mx->mbox = safe_strdup
(url.path);' in libmutt/imap/util.c, and safe_strdup returns a NULL value
when given an *empty* string:

  if (!s || !*s)
    return 0;

(libmutt/lib.c). Don't know what other strdup's do, but this seems
unreasonable to me! I guess the fix is

--->		return path && strcmp(path, "INBOX") == 0;

Peter




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]